summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-08-10 05:12:17 +0200
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-08-10 05:12:17 +0200
commit8e0f0c9d5b9b4d90fd6b2be0083bee4327d1ed93 (patch)
treeb7c43d074a081c20ffce4c96dff52aef152d4a38
parentc7c16520cf96e399fd1489b41a040ed682f123cb (diff)
generate ext2 filesystem, with 2 blocks smaller than disk image
-rwxr-xr-xscripts/create.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/create.sh b/scripts/create.sh
index a212eede0..fa12b4314 100755
--- a/scripts/create.sh
+++ b/scripts/create.sh
@@ -362,9 +362,13 @@ for a in usr/lib/grub/*-pc/{*.mod,efiemu??.o,command.lst,moddep.lst,fs.lst,handl
[[ -e $a ]] && grubfiles[ngrubfiles++]=$a
done
cp "${grubfiles[@]}" boot/grub/
+
+genext2fs -q -b 524286 -d $T ${tgt}.new
+
(( quiet )) || print Finishing up...
cd "$TOPDIR"
-umount "$T"
+
+dd if=${tgt}.new of=$tgt seek=64K
(( quiet )) || print "\nNote: the rootfs UUID is: $partuuid"