Fixed script error and added some info.
This commit is contained in:
parent
27b9bee38b
commit
ab83b11c8e
|
@ -28,6 +28,13 @@
|
||||||
http://archive.ubuntu.com/ubuntu/
|
http://archive.ubuntu.com/ubuntu/
|
||||||
http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/
|
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
|
## SETUP DIR STRUCTURE
|
||||||
*** buildDir is where you are maintaining the squashfs and iso bits
|
*** buildDir is where you are maintaining the squashfs and iso bits
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
## Removes all packages but the ones specified and its dependencies
|
## Removes all packages but the ones specified and its dependencies
|
||||||
# !~nubuntu-minimal
|
# !~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
|
## Get installed pkgs and insert to txt file
|
||||||
apt list --installed | awk '{print $1}' | cut -f1 -d"/" > installed-list.txt
|
apt list --installed | awk '{print $1}' | cut -f1 -d"/" > installed-list.txt
|
||||||
|
|
|
@ -95,9 +95,9 @@ main() {
|
||||||
ANSR=""
|
ANSR=""
|
||||||
while [[ $ANSR != "1" ]] && [[ $ANSR != "2" ]] && [[ $ANSR != "3" ]]; do
|
while [[ $ANSR != "1" ]] && [[ $ANSR != "2" ]] && [[ $ANSR != "3" ]]; do
|
||||||
clear
|
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" \
|
"Which do you wish to use?\n" \
|
||||||
"1.) $(echo ./*.iso)\n" \
|
"1.) Use ISO(s)\n" \
|
||||||
"2.) Use former session: squashfs-root\n" \
|
"2.) Use former session: squashfs-root\n" \
|
||||||
"3.) Exit"
|
"3.) Exit"
|
||||||
read -p "--> : " ANSR
|
read -p "--> : " ANSR
|
||||||
|
@ -202,7 +202,7 @@ setConfigs() {
|
||||||
|
|
||||||
genSqush() {
|
genSqush() {
|
||||||
## Recreate squashfs
|
## 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:
|
## Write the filesystem.size file, which is needed by the installer:
|
||||||
chmod 644 iso/casper/filesystem.size
|
chmod 644 iso/casper/filesystem.size
|
||||||
|
|
Loading…
Reference in New Issue