|
|
@ -2,7 +2,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
set -e |
|
|
|
set -e |
|
|
|
|
|
|
|
|
|
|
|
apt install \ |
|
|
|
printf "Checking dependencies...\n" |
|
|
|
|
|
|
|
dpkg-query -W \ |
|
|
|
|
|
|
|
git \ |
|
|
|
debootstrap \ |
|
|
|
debootstrap \ |
|
|
|
squashfs-tools \ |
|
|
|
squashfs-tools \ |
|
|
|
xorriso \ |
|
|
|
xorriso \ |
|
|
@ -33,9 +35,9 @@ chroot /srv/LIVE_BOOT/chroot /srv/entrypoint.sh |
|
|
|
rm -rf /srv/LIVE_BOOT/chroot/srv/* |
|
|
|
rm -rf /srv/LIVE_BOOT/chroot/srv/* |
|
|
|
|
|
|
|
|
|
|
|
# Change password to the users |
|
|
|
# Change password to the users |
|
|
|
echo "Setting passwords for users..." |
|
|
|
printf "Setting passwords for users...\n" |
|
|
|
echo "root:root" | chpasswd --root /srv/LIVE_BOOT/chroot |
|
|
|
printf "root:root\n" | chpasswd --root /srv/LIVE_BOOT/chroot |
|
|
|
echo "live-user:root" | chpasswd --root /srv/LIVE_BOOT/chroot |
|
|
|
printf "live-user:root\n" | chpasswd --root /srv/LIVE_BOOT/chroot |
|
|
|
|
|
|
|
|
|
|
|
# Create directories that will contain files for our live environment files and scratch files. |
|
|
|
# Create directories that will contain files for our live environment files and scratch files. |
|
|
|
bash -c "mkdir -p /srv/LIVE_BOOT/{staging/{EFI/boot,boot/grub/x86_64-efi,isolinux,live},tmp}" |
|
|
|
bash -c "mkdir -p /srv/LIVE_BOOT/{staging/{EFI/boot,boot/grub/x86_64-efi,isolinux,live},tmp}" |
|
|
|