Fixed script error and added some info.

This commit is contained in:
Maxim 2018-01-28 20:31:22 -06:00
parent 27b9bee38b
commit ab83b11c8e
3 changed files with 14 additions and 5 deletions

View File

@ -28,6 +28,13 @@
http://archive.ubuntu.com/ubuntu/
http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/
--- SIDE NOTE ---
Ubuntu Mini Remix contains:
- ubuntu-minimal (this is a metapackage, details at https://packages.ubuntu.com/cgi-bin/search_packages.pl?keywords=ubuntu-minimal&searchon=names&subword=1&version=all&release=all)
- ubuntu-standard (this is a metapackage, details at https://packages.ubuntu.com/cgi-bin/search_packages.pl?keywords=ubuntu-standard&searchon=names&subword=1&version=all&release=all)
- casper
- lupin-casper
## SETUP DIR STRUCTURE
*** buildDir is where you are maintaining the squashfs and iso bits

View File

@ -1,7 +1,9 @@
## Removes all packages but the ones specified and its dependencies
# !~nubuntu-minimal
aptitude markauto '~i !~nxserver !~nxserver-xorg !~nxorg !~nlinux-image-generic !~nsquashfs-tools !~ncasper !~naptitude !~napt-get !~napt' -y
aptitude markauto '~i !~nlinux-image-generic !~nubuntu-minimal !~nubuntu-standard !~ncasper !~nlupin-casper !~naptitude !~napt-get !~napt'
OR
// NOT EXACT!!!! LOOOK UP
apt-mark auto '!~nlinux-image-generic !~nubuntu-minimal !~nubuntu-standard !~ncasper !~nlupin-casper !~aptitude'
## Get installed pkgs and insert to txt file
apt list --installed | awk '{print $1}' | cut -f1 -d"/" > installed-list.txt

View File

@ -95,9 +95,9 @@ main() {
ANSR=""
while [[ $ANSR != "1" ]] && [[ $ANSR != "2" ]] && [[ $ANSR != "3" ]]; do
clear
echo -e "Both an iso and squashfs-root are present...\n"
echo -e "Both an iso(s) and squashfs-root are present...\n" \
"Which do you wish to use?\n" \
"1.) $(echo ./*.iso)\n" \
"1.) Use ISO(s)\n" \
"2.) Use former session: squashfs-root\n" \
"3.) Exit"
read -p "--> : " ANSR
@ -202,7 +202,7 @@ setConfigs() {
genSqush() {
## Recreate squashfs
mksquashfs squashfs-root/ iso/casper/filesystem.squashfs -comp xz -e squashfs-root/boot
mksquashfs squashfs-root/ iso/casper/filesystem.squashfs -b 1048576 -comp xz -Xdict-size 100% -e squashfs-root/boot
## Write the filesystem.size file, which is needed by the installer:
chmod 644 iso/casper/filesystem.size