diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-08 17:36:19 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-08 17:36:19 +0100 |
commit | 9dbc42981b850eb4aca36b48c354abd148a03af0 (patch) | |
tree | cef48fb3bdd4ed95bd2dec5260afcba1f0e41a5a /scripts | |
parent | fba0e303bcd29bfcb08c3b90804667f4af701783 (diff) | |
download | imagefish-9dbc42981b850eb4aca36b48c354abd148a03af0.tar.gz |
msg for install
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install-redhat.sh | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/scripts/install-redhat.sh b/scripts/install-redhat.sh index fda372b..c268801 100755 --- a/scripts/install-redhat.sh +++ b/scripts/install-redhat.sh @@ -14,8 +14,15 @@ conf="" ###################################################################### # create work dir +function msg() { + local txt="$1" + local bold="\x1b[1m" + local normal="\x1b[0m" + echo -e "${bold}### ${txt}${normal}" +} + function do_cleanup() { - echo "### cleaning up ..." + msg "cleaning up ..." # sudo umount -v "$dest/dev" sudo rm -rf "$WORK" } @@ -151,12 +158,12 @@ mkdir -p ${dest}/{dev,proc,sys,mnt} inst="" for item in $grps; do inst="${inst} @${item}"; done for item in $rpms; do inst="${inst} ${item}"; done -echo "### dnf install packages to $dest ..." +msg "dnf install packages to $dest ..." #sudo mount --bind /dev $dest/dev #sudo mount -o remount,bind,ro $dest/dev (set -x; sudo $tool --quiet install $inst) || exit 1 if test "$krnl" != ""; then - echo "### dnf install $krnl to $dest ..." + msg "dnf install $krnl to $dest ..." (set -x; sudo $tool install $krnl) || exit 1 fi sudo rm -rf "${dest}/var/cache/"{dnf,yum} @@ -170,8 +177,8 @@ if test "$tarb" != ""; then *) topt="" ;; esac - echo "### create tarball $tarb ..." + msg "create tarball $tarb ..." (cd $dest; sudo tar --create $topt .) > "$tarb" fi -echo "### all done." +msg "all done." |