Home | History | Annotate | Download | only in qemu_multiarch_testing
      1 #!/bin/sh
      2 
      3 export HDCMEGS=128
      4 
      5 rm hdc.img 2>/dev/null
      6 umount -d hdc.img.dir 2>/dev/null
      7 rm -rf hdc.img.dir 2>/dev/null
      8 
      9 dd if=/dev/zero of=hdc.img bs=1024 seek=$((HDCMEGS*1024-1)) count=1 &&
     10 mke2fs -q -b 1024 -F -i 4096 hdc.img &&
     11 tune2fs -j -c 0 -i 0 hdc.img &&
     12 mkdir hdc.img.dir &&
     13 mount -o loop hdc.img hdc.img.dir &&
     14 cp -a hdc.dir/* hdc.img.dir &&
     15 umount -d hdc.img.dir &&
     16 rm -rf hdc.img.dir &&
     17 true
     18