[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[rhel6-branch 2/5] Set up udev environment so anaconda's udev rules run in livecd.



From: David Lehman <dlehman redhat com>

The udev environment variable ANACONDA must be set for any of the
rules in 70-anaconda.rules to be run. It's handled by init for
normal installs.

Related: rhbz#590384.
---
 liveinst/liveinst |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/liveinst/liveinst b/liveinst/liveinst
index e945912..95bd35f 100755
--- a/liveinst/liveinst
+++ b/liveinst/liveinst
@@ -80,6 +80,8 @@ for i in /dev/md*; do
     esac
 done
 
+/sbin/udevadm control --env=ANACONDA=1
+
 if [ -x /usr/bin/devkit-disks ]; then
     /usr/bin/devkit-disks --inhibit -- /usr/bin/hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive --run "$ANACONDA $*"
 elif [ -x /usr/bin/hal-lock -a -e /var/lock/subsys/haldaemon ]; then
-- 
1.6.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]