Add a label to part/LV
This commit is contained in:
parent
9de6015afb
commit
6695f9564c
|
@ -33,7 +33,7 @@ if [ "${manage_part}" -eq 0 ]; then
|
||||||
sudo vgcreate "${vgname}" "${hdd}"2
|
sudo vgcreate "${vgname}" "${hdd}"2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkfs.ext3 -F -- "${hdd}"1
|
mkfs.ext3 -F -L boot -- "${hdd}"1
|
||||||
|
|
||||||
## }}}
|
## }}}
|
||||||
## Create Logical Volumes {{{
|
## Create Logical Volumes {{{
|
||||||
|
@ -49,12 +49,14 @@ mkfs.ext3 -F -- "${hdd}"1
|
||||||
[ ! -b /dev/mapper/"${vgname}"-swap ] && lvcreate -n swap -L 2g "${vgname}"
|
[ ! -b /dev/mapper/"${vgname}"-swap ] && lvcreate -n swap -L 2g "${vgname}"
|
||||||
|
|
||||||
### Format the LV in ext4
|
### Format the LV in ext4
|
||||||
for lvname in /dev/mapper/"${vgname}"-*; do
|
cd -- /dev/"${vgname}" || exit 1
|
||||||
mkfs.ext4 -F -- "${lvname}"
|
for lvname in *; do
|
||||||
|
mkfs.ext4 -F -L "${lvname}" -- "${lvname}"
|
||||||
done
|
done
|
||||||
|
cd -- - || exit 1
|
||||||
|
|
||||||
### And format the swap
|
### And format the swap
|
||||||
mkswap /dev/mapper/"${vgname}"-swap
|
mkswap -L sw01 -- /dev/mapper/"${vgname}"-swap
|
||||||
## }}}
|
## }}}
|
||||||
# }}}
|
# }}}
|
||||||
# Debootstrap {{{
|
# Debootstrap {{{
|
||||||
|
|
Loading…
Reference in New Issue