Title: [Systemimager-commits] r3255 - in trunk/initrd_source: . skel/etc/init.d
Hey Brian:
 
This seems to have broken SystemImager - now when I boot a node with the resulting initrd.img, I get the following error message:
 
RAMDISK: Compressed image found at block 0
input: AT Translated Set 2 keyboard on isa0060/serio0
VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 644 freed
Warning: unable to open an initial console.
 
I mounted initrd.img on the loopback and sure enough "console" and "null" weren't there.
 
Cheers,
 
Bernard


From: [EMAIL PROTECTED] on behalf of finley
Sent: Fri 11/11/2005 21:35
To: [EMAIL PROTECTED]
Subject: [Systemimager-commits] r3255 - in trunk/initrd_source: . skel/etc/init.d

Author: finley
Date: 2005-11-11 23:35:01 -0600 (Fri, 11 Nov 2005)
New Revision: 3255

Modified:
   trunk/initrd_source/initrd.rul
   trunk/initrd_source/skel/etc/init.d/functions
   trunk/initrd_source/skel/etc/init.d/rcS
Log:
move mknod functionality into rcS so that we don't require root to build.

Modified: trunk/initrd_source/initrd.rul
===================================================================
--- trunk/initrd_source/initrd.rul      2005-11-12 05:33:58 UTC (rev 3254)
+++ trunk/initrd_source/initrd.rul      2005-11-12 05:35:01 UTC (rev 3255)
@@ -45,6 +45,8 @@
 #              udev is properly up and running. If not applied, the kernel will die with the
 #              message:
 #                      Warning: unable to open initial console.
+#      2005.11.11 Brian Elliott Finley
+#      - move mknod bits to rcS -- if we leave them in here, then you have to be root to build.
 #


@@ -121,9 +123,6 @@
        cd $(INITRD_BUILD_DIR) && \
          mkdir -m 755 bin dev etc lib proc root sbin usr var
        test ! -d /lib64 || mkdir -m 755 -p $(INITRD_BUILD_DIR)/lib64
-       cd $(INITRD_BUILD_DIR)/dev && \
-         mknod -m 660 console c 5 1 && \
-         mknod -m 660 null c 1 3
        cd $(INITRD_BUILD_DIR) && \
          mkdir -m 755 usr/bin usr/sbin etc/init.d var/run
        cd $(INITRD_BUILD_DIR) && mkdir -m 1777 tmp

Modified: trunk/initrd_source/skel/etc/init.d/functions
===================================================================
--- trunk/initrd_source/skel/etc/init.d/functions       2005-11-12 05:33:58 UTC (rev 3254)
+++ trunk/initrd_source/skel/etc/init.d/functions       2005-11-12 05:35:01 UTC (rev 3255)
@@ -68,6 +68,17 @@
 #
 ################################################################################
 #
+# create_initial_device_files
+#
+# Usage: create_initial_device_files
+#
+create_initial_device_files() {
+    mknod -m 660 /dev/console c 5 1
+    mknod -m 660 /dev/null c 1 3
+}
+
+
+#
 #  logmsg
 #
 # Usage: log a message, redirects to console / syslog depending on usage

Modified: trunk/initrd_source/skel/etc/init.d/rcS
===================================================================
--- trunk/initrd_source/skel/etc/init.d/rcS     2005-11-12 05:33:58 UTC (rev 3254)
+++ trunk/initrd_source/skel/etc/init.d/rcS     2005-11-12 05:35:01 UTC (rev 3255)
@@ -38,6 +38,8 @@
 #
 #   main
 #
+create_initial_device_files
+
 switch_root_to_tmpfs

 mount_dev_on_devfs



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
systemimager-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/systemimager-commits

Reply via email to