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