summaryrefslogtreecommitdiffstats
path: root/scripts/mk-images.sparc64
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-06-14 06:37:46 +0000
committerMatt Wilson <msw@redhat.com>2000-06-14 06:37:46 +0000
commit6fa59e750c348c5148d1790fd59bc5aedbe0bd47 (patch)
tree8af4a72e0d1cd2afb96a66c8a80f6a2d76c01427 /scripts/mk-images.sparc64
parent1ecd364f262d1e1f6bb1f4031dc9a849e5b4abac (diff)
downloadanaconda-6fa59e750c348c5148d1790fd59bc5aedbe0bd47.tar.gz
anaconda-6fa59e750c348c5148d1790fd59bc5aedbe0bd47.tar.xz
anaconda-6fa59e750c348c5148d1790fd59bc5aedbe0bd47.zip
chown the dest and destgr trees, promote to sparc64 when running depmod
Diffstat (limited to 'scripts/mk-images.sparc64')
-rw-r--r--scripts/mk-images.sparc649
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/mk-images.sparc64 b/scripts/mk-images.sparc64
index a1321962a..a509120ef 100644
--- a/scripts/mk-images.sparc64
+++ b/scripts/mk-images.sparc64
@@ -1,10 +1,9 @@
SECSTAGE="vfat raid0 raid1 raid5"
TILO=$IMGPATH/usr/bin/tilo
SILO=$IMGPATH/usr/sbin/silo
+FAKEARCH=sparc64
prepareBootImage() {
- dd if=/dev/zero bs=1k count=$BOOTDISKSIZE of=$MBD_TMPIMAGE 2>/dev/null
- loopdev=`findloopdevice $MBD_TMPIMAGE`
stagedir=/tmp/sparcboot.$$
rm -rf $stagedir
mkdir -p $stagedir
@@ -14,9 +13,11 @@ prepareBootImage() {
cp $BOOTDISKDIR/second.b $stagedir
cp $BOOTDISKDIR/*.msg $stagedir
cp $BOOTDISKDIR/silo64.conf $stagedir/silo.conf
- genromfs -V "Red Hat Linux Install" -d $stagedir -f $loopdev -a 512 -A 2048,/..
+ genromfs -V "Red Hat Linux Install" -d $stagedir -f $MBD_TMPIMAGE -a 512 -A 2048,/..
+ size=`cat $MBD_TMPIMAGE | wc -c`
+ filler=`expr $BOOTDISKSIZE "*" 1024 - $size`
+ dd if=/dev/zero bs=$filler count=1 >> $MBD_TMPIMAGE 2> /dev/null
rm -rf $stagedir
- losetup -d $loopdev
mount -tromfs -oloop $MBD_TMPIMAGE $MBD_BOOTTREE
$SILO -r $MBD_BOOTTREE -i /fd.b -b /second.b -C /silo.conf -F
}