From ab83b11c8ef1c767c54acf065de6a70077b3430c Mon Sep 17 00:00:00 2001 From: Maxim Date: Sun, 28 Jan 2018 20:31:22 -0600 Subject: [PATCH] Fixed script error and added some info. --- NOTES_LICENCE/Chroot_Distro_Build.txt | 7 +++++++ NOTES_LICENCE/Useful_Commands.txt | 6 ++++-- dist_Builder.sh | 6 +++--- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/NOTES_LICENCE/Chroot_Distro_Build.txt b/NOTES_LICENCE/Chroot_Distro_Build.txt index 86dc277..6c0ad6e 100644 --- a/NOTES_LICENCE/Chroot_Distro_Build.txt +++ b/NOTES_LICENCE/Chroot_Distro_Build.txt @@ -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 diff --git a/NOTES_LICENCE/Useful_Commands.txt b/NOTES_LICENCE/Useful_Commands.txt index c679f49..5445c97 100644 --- a/NOTES_LICENCE/Useful_Commands.txt +++ b/NOTES_LICENCE/Useful_Commands.txt @@ -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 diff --git a/dist_Builder.sh b/dist_Builder.sh index 6731baf..71eb08e 100755 --- a/dist_Builder.sh +++ b/dist_Builder.sh @@ -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