diff options
author | Peter Jones <pjones@redhat.com> | 2006-01-13 19:42:04 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2006-01-13 19:42:04 +0000 |
commit | 65bac214eb2d67f1d38a965aa2091a9170f657ab (patch) | |
tree | 47c3a16688903cebeae770a5ee1f4e2e825ab146 /scripts | |
parent | f155174489fe48141a12d2aecaf9fbd3c3c560f1 (diff) | |
download | anaconda-65bac214eb2d67f1d38a965aa2091a9170f657ab.tar.gz anaconda-65bac214eb2d67f1d38a965aa2091a9170f657ab.tar.xz anaconda-65bac214eb2d67f1d38a965aa2091a9170f657ab.zip |
- add dmraid and dmsetup to the rescue image
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/upd-instroot | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot index bde78c7eb..3abd9aafc 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -208,6 +208,11 @@ if [ -z "$NEEDGR" ]; then PACKAGESRESCUE="bash" fi +# dmraid stuff +if [ $ARCH != s390 -a $ARCH != s390x ]; then + PACKAGESRESCUE="$PACKAGESRESCUE device-mapper dmraid" +fi + # # add bootloader for particular arch # @@ -871,6 +876,14 @@ usr/sbin/mtr usr/sbin/traceroute EOF +# dmraid stuff +if [ $ARCH != s390 -a $ARCH != s390x ]; then + cat >> $KEEPFILERESCUE <<-EOF +sbin/dmraid.static +sbin/dmsetup.static +EOF +fi + if [ $ARCH = i386 ]; then cat >> $KEEPFILERESCUE <<-EOF usr/bin/gpart @@ -923,6 +936,14 @@ if [ $ARCH = s390 -o $ARCH = s390x ]; then mv $i/bin/sed $i/bin/sed_save mv $i/bin/sort $i/bin/sort_save done +else + for i in $DEST $DESTGR; do + # there's never a case with only one of these... + if [ -f $i/sbin/dmraid.static ]; then + mv $i/sbin/dmraid.static $i/sbin/dmraid + mv $i/sbin/dmsetup.static $i/sbin/dmsetup + fi + done fi # change mtimes to 0 (to match what happens on the cramfs) |