Format first part in ext3

This commit is contained in:
Jeremy Gardais 2019-04-02 20:15:10 +02:00
parent 3ef0dc3077
commit 6339ec9c16
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 4 additions and 2 deletions

View File

@ -30,9 +30,11 @@ if [ "${manage_part}" -eq 0 ]; then
parted "${hdd}" mkpart primary 4194kB 100%
parted "${hdd}" set 2 lvm on
sudo pvcreate "${hdd}"2
sudo vgcreate "${vgname}" ${hdd}2
sudo vgcreate "${vgname}" "${hdd}"2
fi
mkfs.ext3 -F -- "${hdd}"1
## }}}
## Create Logical Volumes {{{
[ ! -b /dev/mapper/"${vgname}"-home ] && lvcreate -n home -L 20g "${vgname}"
@ -48,7 +50,7 @@ fi
### Format the LV in ext4
for lvname in /dev/mapper/"${vgname}"-*; do
mkfs.ext4 -F "${lvname}"
mkfs.ext4 -F -- "${lvname}"
done
### And format the swap