From 0aee0dc614976b359c8782b83bbb9cb55f46b4c9 Mon Sep 17 00:00:00 2001 From: mki77 <77498866+mki77@users.noreply.github.com> Date: Sat, 6 Feb 2021 15:24:20 +0100 Subject: [PATCH] Some fixes --- scripts/{ubuntu-lb.sh => ubuntufs.sh} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename scripts/{ubuntu-lb.sh => ubuntufs.sh} (98%) diff --git a/scripts/ubuntu-lb.sh b/scripts/ubuntufs.sh similarity index 98% rename from scripts/ubuntu-lb.sh rename to scripts/ubuntufs.sh index 86145a18..049d40d7 100644 --- a/scripts/ubuntu-lb.sh +++ b/scripts/ubuntufs.sh @@ -21,7 +21,7 @@ do_buildiso() { sudo debootstrap --arch=amd64 --variant=minbase groovy filesystem http://archive.ubuntu.com/ubuntu/"; exit #sudo debootstrap --arch=amd64 --variant=minbase bullseye $FS_DIR http://deb.debian.org/debian/"; exit fi - ISO_NAME=`grep PRETTY_NAME filesystem/etc/os-release | sed s/^[^=]*=// | sed -e 's/^"//' -e 's/"$//'` + ISO_NAME=`grep PRETTY_NAME filesystem/etc/os-release | sed s/^[^=]*=// | sed -e 's/^"//' -e 's/"$//' | cut -c -16` ISO_VERS=`grep VERSION_CODE filesystem/etc/os-release | sed s/^[^=]*=//` ISO_FILE=$ISO_VERS-live-amd64.iso mkdir -p iso/{casper,isolinux} @@ -85,7 +85,7 @@ EOF mkfs.vfat efiboot.img && \ LC_CTYPE=C mmd -i efiboot.img efi efi/boot && \ LC_CTYPE=C mcopy -i efiboot.img bootx64.efi ::efi/boot/ - ) &> /dev/null + ) # Create a BIOS bootable GRUB image grub-mkstandalone \ --format=i386-pc \ @@ -247,7 +247,7 @@ case "$1" in -e) do_extract $2;; -r) do_rebuild ;; -i) chmod +x "$0"; cp -vf "$0" /usr/local/bin/${0%.sh}; - apt install -y grub-pc-bin grub-efi-amd64-bin xorriso squashfs-tools \ + apt install -y grub-pc-bin grub-efi-amd64-bin mtools xorriso squashfs-tools \ genisoimage syslinux-utils xserver-xephyr;; -h|--help) echo "This script builds bootstrap environment. -b|build Build ISO image