summaryrefslogtreecommitdiffstats
path: root/scripts/mk-images
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-04 13:40:10 +0000
committerErik Troan <ewt@redhat.com>2000-05-04 13:40:10 +0000
commit0c8946498525fc2e3d5350441bd1da7d2dc9bbf5 (patch)
tree1c4f22c9652f7bb9dc9b0777c9dd5e47aaced990 /scripts/mk-images
parent5f10ca28bb8d7fda12f5b3880a010c64711b1df5 (diff)
downloadanaconda-0c8946498525fc2e3d5350441bd1da7d2dc9bbf5.tar.gz
anaconda-0c8946498525fc2e3d5350441bd1da7d2dc9bbf5.tar.xz
anaconda-0c8946498525fc2e3d5350441bd1da7d2dc9bbf5.zip
added --kernelto and --initrdto options
Diffstat (limited to 'scripts/mk-images')
-rwxr-xr-xscripts/mk-images24
1 files changed, 23 insertions, 1 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index 7fec54df0..dacc4c1c7 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -16,7 +16,8 @@ TOPDIR=$(cd $TOPDIR; pwd)
# Set, verify, and create paths
KERNELPATH=$1
- IMAGEPATH=$2
+ TOPDESTPATH=$2
+ IMAGEPATH=$2/images
FULLMODPATH=$3
INSTIMGPATH=$4
INSTIMGTEMPLATE=$5
@@ -226,6 +227,17 @@ makemainmodules() {
}
makebootdisk() {
+ EXTRAKERNELPATH=""
+ EXTRAINITRDPATH=""
+ while [ $(echo $1 | cut -c1-2) = "--" ]; do
+ if [ $1 = "--kernelto" ]; then
+ EXTRAKERNELPATH=$2
+ shift; shift
+ elif [ $1 = "--initrdto" ]; then
+ EXTRAINITRDPATH=$2
+ shift; shift
+ fi
+ done
MBD_FILENAME=$IMAGEPATH/$1
LOADERBIN=$2
MODSET=`expandModuleSet "$3"`
@@ -351,6 +363,16 @@ EOF
echo "I don't know how big to make the image!" >&2
exit 1
fi
+
+ if [ -n "$EXTRAKERNELPATH" ]; then
+ mkdir -p $EXTRAKERNELPATH
+ cp -a $KERNELROOT/boot/vmlinuz-* $EXTRAKERNELPATH/vmlinuz
+ fi
+
+ if [ -n "$EXTRAINITRDPATH" ]; then
+ mkdir -p $EXTRAINITRDPATH
+ cp -a $MBD_FSIMAGE $EXTRAINITRDPATH/initrd
+ fi
rmdir $MBD_BOOTTREE
rm -f $MBD_FILENAME