OSDN Git Service

[update] : Added transcate command
authorhayao <hayao@fascode.net>
Fri, 12 Mar 2021 10:19:06 +0000 (19:19 +0900)
committerhayao <hayao@fascode.net>
Fri, 12 Mar 2021 10:19:06 +0000 (19:19 +0900)
build.sh

index b7d6bed..f44cf7a 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -598,6 +598,7 @@ make_pacman_conf() {
 # Base installation (airootfs)
 make_basefs() {
     msg_info "Creating ext4 image of 32GiB..."
+    truncate -s 32G -- "${airootfs_dir}.img"
     mkfs.ext4 -O '^has_journal,^resize_inode' -E 'lazy_itable_init=0' -m 0 -F -- "${airootfs_dir}.img" 32G
     tune2fs -c "0" -i "0" "${airootfs_dir}.img"
     msg_info "Done!"