From: Marc Fiuczynski <mef@cs.princeton.edu> Date: Wed, 22 Nov 2006 20:40:48 +0000 (+0000) Subject: Fixed up usb image that uses cramfs and 9600baud serial line console. X-Git-Tag: bootcd-3.4-2~51 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ca12b9dd6f3c9fa7eb396f0fafea32100545df86;p=bootcd.git Fixed up usb image that uses cramfs and 9600baud serial line console. Also added ttyS0 to securetty. --- diff --git a/build.sh b/build.sh index bff2262..0e1f598 100755 --- a/build.sh +++ b/build.sh @@ -378,11 +378,17 @@ popd # update etc/inittab to start with pl_rsysinit sed -i 's,pl_sysinit,pl_rsysinit,' etc/inittab +# modify inittab to have a serial console +echo "T0:23:respawn:/sbin/agetty -L ttyS0 9600 vt100" >> etc/inittab +# and let root log in +echo "ttyS0" >> etc/securetty + #calculate the size of /tmp based on the size of /etc & /var + 8MB slack etcsize=$(du -s ./etc | awk '{ print $1 }') varsize=$(du -s ./etc | awk '{ print $1 }') let msize=($vsize+$esize+8192)/1024 + # generate pl_rsysinit cat > etc/rc.d/init.d/pl_rsysinit <<EOF #!/bin/sh @@ -530,14 +536,14 @@ cp ${BUILDTMP}/cramfs.img $tmp/ # Use syslinux instead of isolinux to make the image bootable cat >$tmp/syslinux.cfg <<EOF -SERIAL 0 115200 +SERIAL 0 9600 PROMPT 0 TIMEOUT 120 DISPLAY pl_version DEFAULT serial LABEL serial KERNEL kernel - APPEND ramdisk_size=$cramfs_size initrd=cramfs.img root=/dev/ram0 ro console=ttyS0,115200n8 + APPEND ramdisk_size=$cramfs_size initrd=cramfs.img root=/dev/ram0 ro console=ttyS0,9600n8 EOF umount $tmp rmdir $tmp