This checks if there are any OEMDRV labelled storage volumes available; if yes, load a ks.cfg file from that.
This should only happen if a user has not manually specified a ks= option themselves.
Thanks to Will Woods wwoods@redhat.com for helping out with this.
Resolves: rhbz#1057271 --- dracut/kickstart-genrules.sh | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dracut/kickstart-genrules.sh b/dracut/kickstart-genrules.sh index 3b83d6c..eb58b2a 100755 --- a/dracut/kickstart-genrules.sh +++ b/dracut/kickstart-genrules.sh @@ -24,4 +24,10 @@ case "${kickstart%%:*}" in bd) # bd:<dev>:<path> - biospart (TODO... if anyone uses this anymore) warn "inst.ks: can't get kickstart - biospart (bd:) isn't supported yet" ;; + "") + if [ -z "$kickstart" ]; then + when_diskdev_appears $(disk_to_dev_path LABEL=OEMDRV) \ + fetch-kickstart-disk $env{DEVNAME} "/ks.cfg" + fi + ;; esac
On Tue, 2015-07-21 at 16:57 -0400, Samantha N. Bueno wrote:
This checks if there are any OEMDRV labelled storage volumes available; if yes, load a ks.cfg file from that.
This should only happen if a user has not manually specified a ks= option themselves.
Thanks to Will Woods wwoods@redhat.com for helping out with this.
Resolves: rhbz#1057271
dracut/kickstart-genrules.sh | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dracut/kickstart-genrules.sh b/dracut/kickstart-genrules.sh index 3b83d6c..eb58b2a 100755 --- a/dracut/kickstart-genrules.sh +++ b/dracut/kickstart-genrules.sh @@ -24,4 +24,10 @@ case "${kickstart%%:*}" in bd) # bd:<dev>:<path> - biospart (TODO... if anyone uses this anymore) warn "inst.ks: can't get kickstart - biospart (bd:) isn't supported yet" ;;
- "")
if [ -z "$kickstart" ]; thenwhen_diskdev_appears $(disk_to_dev_path LABEL=OEMDRV) \fetch-kickstart-disk \$env{DEVNAME} "/ks.cfg"fi- ;;
esac
Looks good to me.
anaconda-patches@lists.fedorahosted.org