Browse Source

generate ext2 filesystem, with 2 blocks smaller than disk image

Waldemar Brodkorb 11 years ago
parent
commit
8e0f0c9d5b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      scripts/create.sh

+ 5 - 1
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"