Summary: | baselayout halt.sh : add write check for saving udev device nodes | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Daniel Drake (RETIRED) <dsd> |
Component: | [OLD] baselayout | Assignee: | 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)
![]() Created attachment 42379 [details, diff]
check-udevstate-writable.patch
Against /etc/init.d/halt.sh
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? 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 |