diff options
author | Ludovic Pouzenc <ludovic.pouzenc@mines-albi.fr> | 2018-04-16 19:10:33 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic.pouzenc@mines-albi.fr> | 2018-04-16 19:10:33 +0200 |
commit | 6df4974a7857d94005cd8a56e30880ad063e5b07 (patch) | |
tree | 2667b0848de2bf5519aaf34b6a121926d17078db | |
parent | 86863ee1f083dbdadcb896734b319aa59a2707c4 (diff) | |
download | eficast-6df4974a7857d94005cd8a56e30880ad063e5b07.tar.gz eficast-6df4974a7857d94005cd8a56e30880ad063e5b07.tar.bz2 eficast-6df4974a7857d94005cd8a56e30880ad063e5b07.zip |
Add more tooling
-rwxr-xr-x | make-boot-image.sh | 6 |
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 |