From dbffb2d3ecfa4483099e8e888f1541706d5bd54d Mon Sep 17 00:00:00 2001 From: dufourj Date: Mon, 30 Jan 2006 23:04:52 +0000 Subject: 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. --- i/pc104/initrd/create.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'i/pc104/initrd/create.sh') 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 -- cgit v1.2.3