write a custom /etc/issue
authorAaron Klingaman <alk@cs.princeton.edu>
Thu, 2 Dec 2004 15:58:42 +0000 (15:58 +0000)
committerAaron Klingaman <alk@cs.princeton.edu>
Thu, 2 Dec 2004 15:58:42 +0000 (15:58 +0000)
build.sh

index 6bbed7c..826bdef 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -132,6 +132,10 @@ function build_initrd()
     cp -f $CONF_FILES_DIR/isolinux.cfg $CD_ROOT/usr/isolinux/
     echo "$FULL_VERSION_STRING" > $CD_ROOT/usr/isolinux/message.txt
 
+    echo "writing /etc/issue"
+    echo "$FULL_VERSION_STRING" > $CD_ROOT/etc/issue
+    echo "Kernel \r on an \m\n" >> $CD_ROOT/etc/issue
+
     echo "making the isolinux initrd kernel command line match rd size"
     let INITRD_SIZE_KB=$(($RAMDISK_SIZE * 1024))
     sed -i "s#ramdisk_size=0#ramdisk_size=$INITRD_SIZE_KB#g" \