diff options
author | Thorsten Glaser <tg@mirbsd.org> | 2014-09-27 22:49:08 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-09-27 22:49:08 +0200 |
commit | d0970e5928748c07e023d2cf7efc93af716500ec (patch) | |
tree | f34dbb96f0fe92f5dfaa94907e7c196e70f4eb5d /scripts | |
parent | 3b8ef3b7fccaca8833780ad3e6584721dcc2008f (diff) |
create the data filesystem
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/install.sh b/scripts/install.sh index 39b5e7924..39d84c6be 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -493,6 +493,14 @@ case $target { (( quiet )) || print "Creating filesystem on ${rootpart}..." (( noformat )) || create_fs "$rootpart" ADKROOT ext4 +if (( datafssz )); then + (( quiet )) || print "Creating filesystem on ${datapart}..." + (( noformat )) || create_fs "$datapart" ADKDATA ext4 + mount_fs "$datapart" "$D" ext4 + mkdir -m0755 "$D/mpd" "$D/xbmc" + umount "$D" +fi + (( quiet )) || print Extracting installation archive... mount_fs "$rootpart" "$R" ext4 gzip -dc "$src" | (cd "$R"; tar -xpf -) |