Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 68469

Summary: baselayout halt.sh : add write check for saving udev device nodes
Product: Gentoo Linux Reporter: Daniel Drake (RETIRED) <dsd>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: check-udevstate-writable.patch

Description Daniel Drake (RETIRED) gentoo-dev 2004-10-21 15:58:07 UTC
The 2004.3 livecd's now run udev. Over in bug 67886 we're running into issues on the test cd's where the udev nodes can't be saved into /lib/udev-state on shutdown since its a readonly filesystem. This breaks the shutdown on the new livecds.
Here's a quick patch which should solve this.
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2004-10-21 15:58:43 UTC
Created attachment 42379 [details, diff]
check-udevstate-writable.patch

Against /etc/init.d/halt.sh
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2004-10-22 05:58:41 UTC
Don't really need this anymore since we aren't going to use the device tarball on the livecd. But I guess you might consider this anyway?
Comment 3 SpanKY gentoo-dev 2004-10-25 18:56:23 UTC
unfortunately, -w isnt all it's cracked up to be ;)

case in point ...
from a running system, do this:
# mount / -o remount,ro
# [ -w /lib/udev-state ] && echo should be ok
echo should be ok
# touch /lib/udev-state
touch: setting times of '/lib/udev-state': Read-only file system

but to satisfy the livecd peeps, we'll go with this patch:

        eend $?
-elif [ ! -e /dev/.devfsd -a -e /dev/.udev -a "${RC_DEVICE_TARBALL}" = "yes" ]
+elif [ ! -e /dev/.devfsd -a -e /dev/.udev \
+       -a "${RC_DEVICE_TARBALL}" = "yes" -a -z "${CDBOOT}" ]
 then