Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 96781 Details for
Bug 142887
devices.tar.bz2 can become corrupt on power failure
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
udev-devicetarball_backup.patch
udev-devicetarball_backup.patch (text/plain), 1.19 KB, created by
Lars Wendler (Polynomial-C) (RETIRED)
on 2006-09-12 04:35:58 UTC
(
hide
)
Description:
udev-devicetarball_backup.patch
Filename:
MIME Type:
Creator:
Lars Wendler (Polynomial-C) (RETIRED)
Created:
2006-09-12 04:35:58 UTC
Size:
1.19 KB
patch
obsolete
>--- /lib/rcscripts/addons/udev-start.sh 2006-09-11 21:03:43.000000000 +0200 >+++ udev-start.sh.new 2006-09-12 13:31:50.710020040 +0200 >@@ -98,6 +98,11 @@ > ebegin "Populating /dev with saved device nodes" > try tar -jxpf /lib/udev/state/devices.tar.bz2 -C /dev > eend $? >+ elif [[ ${RC_DEVICE_TARBALL} == "yes" && \ >+ -s /lib/udev/state/devices_old.tar.bz2 ]] ; then >+ ebegin "Populating /dev with saved device nodes backup" >+ try tar -jxpf /lib/udev/state/devices_old.tar.bz2 -C /dev >+ eend $? > fi > > seed_dev >--- /lib/rcscripts/addons/udev-stop.sh 2006-09-11 21:03:43.000000000 +0200 >+++ udev-stop.sh.new 2006-09-12 13:24:50.851848184 +0200 >@@ -49,6 +49,8 @@ > fgrep -x -v -f "${devices_udev}" < "${devices_real}" > "${devices_totar}" > # Now only tarball those not created by udev if we have any > if [[ -s ${devices_totar} ]]; then >+ [[ -e /lib/udev-state/devices.tar.bz2 ]] && \ >+ mv -f /lib/udev-state/devices.tar.bz2 /lib/udev-state/devices_old.tar.bz2 > # we dont want to descend into mounted filesystems (e.g. devpts) > # looking up username may involve NIS/network, and net may be down > tar --one-file-system --numeric-owner -jcpf "${device_tarball}" -T "${devices_totar}"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 142887
: 96781