Add a label to part/LV

This commit is contained in:
Jeremy Gardais 2019-04-02 21:20:34 +02:00
parent 9de6015afb
commit 6695f9564c
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 6 additions and 4 deletions

10
debian/chroot.install vendored
View File

@ -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 {{{