summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmake-boot-image.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/make-boot-image.sh b/make-boot-image.sh
index 39c919b..b8654b9 100755
--- a/make-boot-image.sh
+++ b/make-boot-image.sh
@@ -8,7 +8,7 @@ WORKDIR=./work # Must not be with "nodev" mount option
DLDIR=./downloads
OUTDIR=./out
OUTUSB=/dev/sdb # Will wreck everything here !
-LEGACY=n # make USB bootable key compatible with non UEFI-BIOS
+LEGACY=y # make USB bootable key compatible with non UEFI-BIOS
DEVEL_MODE=n # Adds debugging tools in the generated image
INCLUDE_TCPDUMP=y # tcpdump costs few Mb with libcrypto
ROOTCMD=sudo
@@ -289,7 +289,7 @@ then (
# Disk tools
mkchroot "$WORKDIR/initrd" fdisk gdisk sfdisk sgdisk
# Cloning tools
- mkchroot "$WORKDIR/initrd" /usr/sbin/partclone* efibootmgr pigz udp-receiver
+ mkchroot "$WORKDIR/initrd" /usr/sbin/partclone* efibootmgr pigz udp-receiver scp rsync
# Some dyn-loaded libraries (ldd will not display them)
mkchroot "$WORKDIR/initrd" /lib/x86_64-linux-gnu/libusb-1.0.so.0
@@ -493,6 +493,7 @@ export TERM=linux # busybox on qemu set vt102, then tmux segfaults
# https://git.busybox.net/busybox/tree/init/init.c, search for VT_OPENQRY
# happens if qemu pass "-append console=ttyS0" or similar to the kernel
EOF
+
add_initrd_script "/etc/rc.d/rcS" <<"EOF"
echo -e '\e[37;42m'----- EFICAST start of execution ------'\e[0m'
echo -e '\e[32m/etc/rc.d/rcS script will run on /dev/console now\e[0m'
@@ -563,6 +564,7 @@ network_conf
network_show
machine_info
+touch /run/nosound
autorun nfs && eficast_end
#autorun initrd && eficast_end
set +v