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
|
||||
fi
|
||||
|
||||
mkfs.ext3 -F -- "${hdd}"1
|
||||
mkfs.ext3 -F -L boot -- "${hdd}"1
|
||||
|
||||
## }}}
|
||||
## Create Logical Volumes {{{
|
||||
|
@ -49,12 +49,14 @@ mkfs.ext3 -F -- "${hdd}"1
|
|||
[ ! -b /dev/mapper/"${vgname}"-swap ] && lvcreate -n swap -L 2g "${vgname}"
|
||||
|
||||
### Format the LV in ext4
|
||||
for lvname in /dev/mapper/"${vgname}"-*; do
|
||||
mkfs.ext4 -F -- "${lvname}"
|
||||
cd -- /dev/"${vgname}" || exit 1
|
||||
for lvname in *; do
|
||||
mkfs.ext4 -F -L "${lvname}" -- "${lvname}"
|
||||
done
|
||||
cd -- - || exit 1
|
||||
|
||||
### And format the swap
|
||||
mkswap /dev/mapper/"${vgname}"-swap
|
||||
mkswap -L sw01 -- /dev/mapper/"${vgname}"-swap
|
||||
## }}}
|
||||
# }}}
|
||||
# Debootstrap {{{
|
||||
|
|
Loading…
Reference in New Issue