diff options
author | Will Woods <wwoods@redhat.com> | 2012-08-17 17:21:13 -0400 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2012-08-20 13:28:32 -0400 |
commit | 42a9093e263f7b226ee621ab930acfd00db5d6b4 (patch) | |
tree | 49e5d2c20a611aad35183de4a767ecf9343e29a1 /dracut/repo-genrules.sh | |
parent | 861d6e3fc9d9cd3f719f7e2dbbff31244dc80142 (diff) | |
download | anaconda-42a9093e263f7b226ee621ab930acfd00db5d6b4.tar.gz anaconda-42a9093e263f7b226ee621ab930acfd00db5d6b4.tar.xz anaconda-42a9093e263f7b226ee621ab930acfd00db5d6b4.zip |
dracut: import anaconda-lib.sh in pre-udev hook
Since each hook is (basically) a separate shell, we need to import
anaconda-lib.sh at least once per hook.
Since anaconda-modprobe.sh runs before the other scripts, this covers
the whole hook.
Still, it's a good idea to leave the imports in place so future
maintainers know what functions come from where; clean up the existing
import in repo-genrules.sh to actually provide this info.
Diffstat (limited to 'dracut/repo-genrules.sh')
-rwxr-xr-x | dracut/repo-genrules.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dracut/repo-genrules.sh b/dracut/repo-genrules.sh index 56ce9284f..8b95ce17b 100755 --- a/dracut/repo-genrules.sh +++ b/dracut/repo-genrules.sh @@ -2,8 +2,8 @@ # generate udev rules for handling anaconda-specific root devices # (just the disk-based ones - the network ones are done by netroot) -# see if we need anaconda-lib.sh -command -v unpack_updates_img >/dev/null || . /lib/anaconda-lib.sh +# import anaconda-lib for when_diskdev_appears +command -v when_diskdev_appears >/dev/null || . /lib/anaconda-lib.sh case "$root" in anaconda-disk:*) |