[master/rhel7-branch] Auto-load ks.cfg if OEMDRV volume available. (#1057271)
by Samantha N. Bueno
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(a)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
--
1.9.3
8 years, 11 months
Updated: [rhinstaller/anaconda/pulls/220 master] act on the right objects when stripping URL protocols (#1243962)
by dashea
efa549ef introduced a _removeUrlPrefix() method which expected
its 'editable' parameter to be a GtkEntry (either the base repo
URL entry box, or an additional repo's URL entry box). However,
it had the on_repoUrl_changed() handler call _removeUrlPrefix()
with its own 'editable' parameter, and then had the protocol
combo box call the on_repoUrl_changed() handler when it was
changed, as well as the URL entry box. The intent is that if,
say, you paste in 'https://www.repo.com' while the protocol is
set to http://, then change the protocol to https://, the
protocol will get stripped - but because 'editable' in this
case is the GtkComboBoxText, not the GtkEntry, it all goes
wrong and crashes. The crash is reproducible by adding a
supplementary repo, entering a URL, then changing the
protocol.
This adjusts things so the handler functions that call
_removeUrlPrefix() don't pass in their own 'editable' params
but always pass in the appropriate GtkEntry. It also makes
the protocol combo box for the base repo call the appropriate
handler function as well as the text entry box - matching the
behaviour the original commit introduced for the additional
repo widgets (I guess this was simply overlooked at the time).
I've tested this and all four widgets now behave as expected,
and there are no crashes.
--
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/220
8 years, 11 months
Updated: [rhinstaller/anaconda/pulls/204 master] Source spoke master fix
by dashea
I want to fix source spoke which was somewhat broken and I found that this change will be somewhat bigger than I expected :).
So in short:
* Change hashing of repositories to special IDs (they are attached to existing RepoData instances)
* Checks can now test even not selected objects
* Check repositories URL before leaving spoke
* Some minor fixes
*This is some kind of RFE so please feel free to tell me if there is better solution*
--
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/204
8 years, 11 months