From 6df4974a7857d94005cd8a56e30880ad063e5b07 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Mon, 16 Apr 2018 19:10:33 +0200 Subject: Add more tooling --- make-boot-image.sh | 6 ++++-- 1 file 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 -- cgit v1.2.3