|
@@ -107,12 +107,6 @@ then
|
|
|
mkfs.fat -v -F 32 -n EFIBOOT $disk0 && fsck $disk0
|
|
|
fi
|
|
|
|
|
|
-# Create swapfile
|
|
|
-swapfile=$mnt/swapfile
|
|
|
-dd if=/dev/zero of=$swapfile bs=1M count=1024 status=progress # create 1GB file
|
|
|
-chmod 600 $swapfile # restric permissions
|
|
|
-mkswap $swapfile # format file
|
|
|
-
|
|
|
# Format OS disk -- pkg: e2fsprogs
|
|
|
mkfs.ext4 -v -F $disk1 && fsck $disk1
|
|
|
|
|
@@ -120,6 +114,12 @@ mkfs.ext4 -v -F $disk1 && fsck $disk1
|
|
|
mkdir -p $mnt
|
|
|
mount $disk1 $mnt
|
|
|
|
|
|
+# Create swapfile
|
|
|
+swapfile=$mnt/swapfile
|
|
|
+dd if=/dev/zero of=$swapfile bs=1M count=1024 status=progress # create 1GB file
|
|
|
+chmod 600 $swapfile # restric permissions
|
|
|
+mkswap $swapfile # format file
|
|
|
+
|
|
|
#----------
|
|
|
# Bootstrap -- pkg: debootstrap
|
|
|
# Remark: Debootstrap does not install recommands!!
|