From 6339ec9c16b600671bd178236f43a737bc34e637 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 2 Apr 2019 20:15:10 +0200 Subject: [PATCH] Format first part in ext3 --- debian/chroot.install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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