2015-03-31 04:53:30 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
sudo touch $TARGET_ROOT/fake-os
|
|
|
|
|
2016-05-06 14:34:31 +00:00
|
|
|
for DIR in etc mnt proc dev sys tmp; do
|
|
|
|
sudo mkdir -p ${TARGET_ROOT}/${DIR}
|
|
|
|
done
|
2015-03-31 04:53:30 +00:00
|
|
|
|
|
|
|
# We need some size so the mkfs does not fail when making an fs of size 0
|
|
|
|
# We also need to account for the journal size on the FS
|
|
|
|
dd if=/dev/zero of=$TARGET_ROOT/fake-data bs=1M count=42
|