Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68469 - baselayout halt.sh : add write check for saving udev device nodes
Summary: baselayout halt.sh : add write check for saving udev device nodes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-21 15:58 UTC by Daniel Drake (RETIRED)
Modified: 2004-10-25 18:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
check-udevstate-writable.patch (patch,420 bytes, patch)
2004-10-21 15:58 UTC, Daniel Drake (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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