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