Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 211827
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Embedded Gentoo Team <embedded@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ed Wildgoose <gentoo@wildgooses.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 211827 depends on: Show dependency tree
Bug 211827 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-02-28 19:45 0000
In /lib/rcscripts/addons/mdev-start.sh, function seed_dev(), we need to create
/dev/null or else it's not available for use elsewhere in the startup scripts.  

Now, most of the current scripts supplied with baselayout, *just about* scrape
by without tickling this (although you can see on the lines below my
ammendments  that you would tickle a bug just by having a dev overlay, see the
"> /dev/null" ?).  But not having /dev/null makes writing all scripts rather
tricky and it hits a lot of areas, for example any mdev scripts would also need
to avoid using /dev/null (quite a pain)

What is happening is that any use of > /dev/null creates a real file in that
dir and "mdev -s" doesn't then overwrite this with a proper character device,
leading to a broken system

Patch is simple and below, grateful if someone could apply it:

--- mdev-start.sh.old   2008-02-28 19:35:03 +0000
+++ mdev-start.sh       2008-02-28 19:36:09 +0000
@@ -33,6 +33,9 @@
        [ ! -c /dev/console ] && mknod /dev/console c 5 1
        [ ! -c /dev/tty1 ] && mknod /dev/tty1 c 4 1

+       # Create /dev/null to be able to use it in startup and mdev scripts
+       [ ! -c /dev/null ] && mknod /dev/null c 1 3
+
        # copy over any persistant things
        if [ -d /lib/mdev/devices ] ; then
                cp --preserve=all --recursive --update /lib/mdev/devices/* /dev
2>/dev/null

------- Comment #1 From SpanKY 2008-04-20 01:17:32 0000 -------
fixed in the tree

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug