End by running sh with job control
authorRalph Ronnquist <rrq@rrq.au>
Sat, 28 Oct 2023 07:02:54 +0000 (18:02 +1100)
committerRalph Ronnquist <rrq@rrq.au>
Sat, 28 Oct 2023 07:02:54 +0000 (18:02 +1100)
init/init

index bf114bcd87918ac4ad52c4b83c8d6c6c9ecd0a14..018a78b997a915cab599948098b98c84862b5920 100644 (file)
--- a/init/init
+++ b/init/init
@@ -37,5 +37,6 @@ mount LABEL=TINIEST /cdrom
 mount -t ramfs -o size=1G initrd /target
 
 gunzip < $(find /cdrom -name initrd.gz ) | ( cd /target && cpio -i )
+exec setsid cttyhack sh -i
 exec /bin/sh
 exec switch_root -c /dev/console /target /init