summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-02 20:46:07 +0000
committerErik Troan <ewt@redhat.com>2000-05-02 20:46:07 +0000
commit9809364d6d00b68bc826ae23f6f90cb99315fad3 (patch)
tree8c88d3f4312e4faaef75b61e34051d91e5071fd0 /scripts
parentb221443478b145ccc95ca7c7c49debf0cca9dd1a (diff)
downloadanaconda-9809364d6d00b68bc826ae23f6f90cb99315fad3.tar.gz
anaconda-9809364d6d00b68bc826ae23f6f90cb99315fad3.tar.xz
anaconda-9809364d6d00b68bc826ae23f6f90cb99315fad3.zip
be able to update initrd separately
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upd-bootimage5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/upd-bootimage b/scripts/upd-bootimage
index 785f21723..3a005a536 100755
--- a/scripts/upd-bootimage
+++ b/scripts/upd-bootimage
@@ -37,4 +37,9 @@ gzip -9 < $INITRD > $INITRD.new
cp $INITRD.new $MNTPOINT/initrd.img
umount $MNTPOINT
+if [ -n "$3" -a -f "$3" ]; then
+ echo "Replacing $3"
+ cp -f $INITRD.new $3
+fi
+
rm -rf $MNTPOINT $LOOPMNT $INITRD $INITRD.new