added rootfstype in install-arch.sh script
This commit is contained in:
1 parent
939570552a
commit
cf0d512253
1 file changed
+3
-1
@@ -13,6 +13,7 @@ efi_part_size=200
|
|||||||
swap_size=1024
|
swap_size=1024
|
||||||
hostname="arch"
|
hostname="arch"
|
||||||
normal_user="tola"
|
normal_user="tola"
|
||||||
|
rootfstype="btrfs"
|
||||||
# -------------------
|
# -------------------
|
||||||
|
|
||||||
# -------------- cheking system -----------------
|
# -------------- cheking system -----------------
|
||||||
@@ -35,7 +36,8 @@ printf "g\nn\n1\n2048\n$((($efi_part_size+1)*2048))\nn\n2\n$(((($efi_part_size+1
|
|||||||
# --------------- formatting partitions -----------
|
# --------------- formatting partitions -----------
|
||||||
mkfs.vfat -F 32 ${disk}1
|
mkfs.vfat -F 32 ${disk}1
|
||||||
mkswap ${disk}3
|
mkswap ${disk}3
|
||||||
mkfs.ext4 ${disk}4
|
[ "$rootfstype" == "ext4" ] && mkfs.ext4 ${disk}4
|
||||||
|
[ "$rootfstype" == "btrfs" ] && mkfs.btrfs -L arch -f ${disk}4
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
|
|
||||||
# ----------- mounting partitions -----------------
|
# ----------- mounting partitions -----------------
|
||||||
|
|||||||
Reference in new issue
Block a user