summaryrefslogtreecommitdiff
path: root/i/pc104/initrd/create.sh
diff options
context:
space:
mode:
authordufourj2006-01-30 23:04:52 +0000
committerdufourj2006-01-30 23:04:52 +0000
commitdbffb2d3ecfa4483099e8e888f1541706d5bd54d (patch)
tree510cbf8d0f746891c8c2e2d0c4ece8900b72d5ce /i/pc104/initrd/create.sh
parentbabbeb8dfe6083ae08e61d0624c9eb7b62b8eeb8 (diff)
PC104:
- passage en init plutôt que linuxrc - enfin un mécanisme qui marchotte pour chrooter sur le système réel et rebooter proprement.
Diffstat (limited to 'i/pc104/initrd/create.sh')
-rwxr-xr-xi/pc104/initrd/create.sh19
1 files changed, 11 insertions, 8 deletions
diff --git a/i/pc104/initrd/create.sh b/i/pc104/initrd/create.sh
index 9bca54b..e6cc64f 100755
--- a/i/pc104/initrd/create.sh
+++ b/i/pc104/initrd/create.sh
@@ -50,17 +50,19 @@ mount_initrd ()
create_empty_struct ()
{
# Create an empty root structure
- mkdir -p $INITRD_TEMPDIR/{bin,dev,etc,proc,sbin,usr/{sbin,bin},var/lock,robot,initrd,mnt/localsys}
+ mkdir -p $INITRD_TEMPDIR/{bin,dev,etc/{robot,init.d},proc,sbin,usr/{sbin,bin},var/lock,robot,initrd,mnt/localsys}
# Create all the devices files we need
create_dev
+ # Install the inittab
+ install -m 644 $INITRD_CONFIG_DIR/inittab $INITRD_TEMPDIR/etc/inittab
+ # Copy the rcS script
+ install -m 755 $INITRD_CONFIG_DIR/rcS $INITRD_TEMPDIR/etc/init.d/rcS
# Fstab
install -m 644 $INITRD_CONFIG_DIR/fstab $INITRD_TEMPDIR/etc/fstab
+ # Copy the update script for autonome mode
+ install -m 755 $INITRD_CONFIG_DIR/update_initrd.sh $INITRD_TEMPDIR/etc/robot/update_initrd.sh
# Udhcpc script
install -m 755 $INITRD_CONFIG_DIR/udhcpc.script $INITRD_TEMPDIR/etc/udhcpc.script
- # Copy the linuxrc script
- install -m 755 $INITRD_CONFIG_DIR/linuxrc $INITRD_TEMPDIR/linuxrc
- # Copy the update script for autonome mode
- install -m 755 $INITRD_CONFIG_DIR/update_initrd.sh $INITRD_TEMPDIR/etc/update_initrd.sh
}
create_dev ()
@@ -72,13 +74,14 @@ create_dev ()
cd $INITRD_TEMPDIR/dev
# Create device
$makedev -v std
- # Create the console for logging ? Useful ? XXX
- $makedev -v consoleonly
- #tty1 tty2 tty3 tty4 tty5
+ # Create the console for logging ?
+ $makedev -v consoleonly tty1 tty2 tty5 # tty5 -> log
# Serial
$makedev -v ttyS0 ttyS1 ttyS2
# Hard disk
$makedev -v hda
+ # For initrd
+ #mknod -m 600 initctl p
# XXX Complete...
# Back to the originated directory
cd $cur_dir