diff --git a/debian/chroot.install b/debian/chroot.install index d90f71f..a8cadf7 100755 --- a/debian/chroot.install +++ b/debian/chroot.install @@ -30,9 +30,11 @@ if [ "${manage_part}" -eq 0 ]; then parted "${hdd}" mkpart primary 4194kB 100% parted "${hdd}" set 2 lvm on sudo pvcreate "${hdd}"2 - sudo vgcreate "${vgname}" ${hdd}2 + sudo vgcreate "${vgname}" "${hdd}"2 fi +mkfs.ext3 -F -- "${hdd}"1 + ## }}} ## Create Logical Volumes {{{ [ ! -b /dev/mapper/"${vgname}"-home ] && lvcreate -n home -L 20g "${vgname}" @@ -48,7 +50,7 @@ fi ### Format the LV in ext4 for lvname in /dev/mapper/"${vgname}"-*; do - mkfs.ext4 -F "${lvname}" + mkfs.ext4 -F -- "${lvname}" done ### And format the swap