diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-03-01 19:02:10 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-03-01 19:02:10 +0100 |
commit | 3d0def8c0c51c88c03ded6bd28b466a80f630179 (patch) | |
tree | 80d64e5a312c0cb84aadf1c8e0017d7e592cdfd0 /scripts | |
parent | a640edb6d2fd7ff6e4d48842c8e0b7b0ded1fa48 (diff) | |
download | imagefish-3d0def8c0c51c88c03ded6bd28b466a80f630179.tar.gz |
dnf has different exclude syntax
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install-redhat.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/install-redhat.sh b/scripts/install-redhat.sh index 3337016..227c3b3 100755 --- a/scripts/install-redhat.sh +++ b/scripts/install-redhat.sh @@ -149,6 +149,13 @@ dnf) tool="$tool --enablerepo=mkimage-*" fi inst="" + for item in $grps; do inst="${inst} @${item}"; done + for item in $rpms; do + case "$item" in + -*) inst="${inst} -x ${item#-}" ;; + *) inst="${inst} ${item}" ;; + esac + done ;; yum) tool="$tool -y --installroot ${dest}" @@ -160,6 +167,8 @@ yum) # loops to disable the host repos mkdir -p ${dest}/etc/yum.repos.d inst="--" + for item in $grps; do inst="${inst} @${item}"; done + for item in $rpms; do inst="${inst} ${item}"; done ;; *) # should not happen @@ -170,8 +179,6 @@ esac mkdir -p ${dest}/{dev,proc,sys,mnt} sudo "$BASE/makedev.sh" "${dest}/dev" -for item in $grps; do inst="${inst} @${item}"; done -for item in $rpms; do inst="${inst} ${item}"; done msg "dnf install packages to $dest ..." #sudo mount --bind /dev $dest/dev #sudo mount -o remount,bind,ro $dest/dev |