projects
/
rrq
/
tiniest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
141a9dc
)
Minor cleanup
author
Ralph Ronnquist
<rrq@rrq.au>
Sun, 5 Nov 2023 11:17:50 +0000
(22:17 +1100)
committer
Ralph Ronnquist
<rrq@rrq.au>
Sun, 5 Nov 2023 11:17:50 +0000
(22:17 +1100)
init/init
patch
|
blob
|
history
diff --git
a/init/init
b/init/init
index 018a78b997a915cab599948098b98c84862b5920..6448bd65829558b2bf19c535b1f6c4fe3fa93bb4 100644
(file)
--- a/
init/init
+++ b/
init/init
@@
-5,19
+5,17
@@
echo
echo "Starting..."
echo
echo "Starting..."
echo
-mkdir /cdrom
-mkdir /target
+mkdir /cdrom /target /mnt
for M in proc:/proc devtmpfs:/dev devpts:/dev/pts sysfs:/sys ; do
mkdir -p ${M##*:}
mount -t ${M%%:*} ${M%%:*} ${M##*:}
done
for M in proc:/proc devtmpfs:/dev devpts:/dev/pts sysfs:/sys ; do
mkdir -p ${M##*:}
mount -t ${M%%:*} ${M%%:*} ${M##*:}
done
-for M in ata_piix sd_mod sr_mod isofs vfat xhci-pci usb_storage ; do
- modprobe $M
- sleep 1
-done
-
+modprobe loop max_part=15
+cat <<EOF | xargs -n1 modprobe
+ata_piix sd_mod sr_mod isofs vfat xhci-pci usb_storage exfat ext4
+EOF
#--- Automatic:
# cdrom t10_pi crc64_rocksoft crc64 crc_t10dif crct10dif_common libata
# scsi_mod scsi_common
#--- Automatic:
# cdrom t10_pi crc64_rocksoft crc64 crc_t10dif crct10dif_common libata
# scsi_mod scsi_common
@@
-29,14
+27,24
@@
done
#-- network
# e1000
#-- network
# e1000
+sleep 2
echo
echo
-echo "
Continuing
..."
+echo "
Hi there
..."
echo
echo
+exec setsid cttyhack sh -i
+###################################
+
+if mount LABEL=TINNIE /target ; then
+ exec setsid cttyhack sh -i
+ exec switch_root -c /dev/console /target /init
+fi
+
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
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
exec /bin/sh
exec switch_root -c /dev/console /target /init