diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-10-11 14:31:48 -0500 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-10-11 14:31:48 -0500 |
commit | 3bc13a89e236dbec43b56d7931c11d7c98bffad5 (patch) | |
tree | 1063e0bc4f5112b3b3078dfdc49d576bfd32cb03 | |
parent | f0a578df945e3680efb0dffc7915accf19e60716 (diff) |
append fstab info for /data
-rwxr-xr-x | scripts/install.sh | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/scripts/install.sh b/scripts/install.sh index 66553de6b..0b12266e8 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -499,18 +499,27 @@ case $target { (( quiet )) || print "Creating filesystem on ${rootpart}..." (( noformat )) || create_fs "$rootpart" ADKROOT ext4 +(( quiet )) || print Extracting installation archive... +mount_fs "$rootpart" "$R" ext4 +gzip -dc "$src" | (cd "$R"; tar -xpf -) + if (( datafssz )); then (( quiet )) || print "Creating filesystem on ${datapart}..." + mkdir -m0755 "$R"/data (( noformat )) || create_fs "$datapart" ADKDATA ext4 mount_fs "$datapart" "$D" ext4 mkdir -m0755 "$D/mpd" "$D/xbmc" umount_fs "$D" + case $target { + (raspberry-pi) + echo "/dev/mmcblk0p3 /data ext4 rw 0 0" >> "$R"/etc/fstab + ;; + (solidrun-imx6) + echo "/dev/mmcblk0p3 /data ext4 rw 0 0" >> "$R"/etc/fstab + ;; + } fi -(( quiet )) || print Extracting installation archive... -mount_fs "$rootpart" "$R" ext4 -gzip -dc "$src" | (cd "$R"; tar -xpf -) - case $target { (raspberry-pi) mount_fs "$bootpart" "$B" vfat |