fix(mkfs): trim template whitespace; add changelog; add contributor
Signed-off-by: kosmolito <said.karker@gmail.com>
This commit is contained in:
committed by
Jonathon Anderson
parent
0c15c10515
commit
7842f41f62
@@ -105,13 +105,13 @@ already_formatted() {
|
||||
if command -v mkfs >/dev/null ; then :
|
||||
if false || ! already_formatted /dev/disk/by-partlabel/rootfs; then
|
||||
info "warewulf: mkfs: formatting /dev/disk/by-partlabel/rootfs"
|
||||
mkfs --type=ext4 /dev/disk/by-partlabel/rootfs || die "warewulf: mkfs: failed to format /dev/disk/by-partlabel/rootfs"
|
||||
mkfs --type=ext4 /dev/disk/by-partlabel/rootfs || die "warewulf: mkfs: failed to format /dev/disk/by-partlabel/rootfs"
|
||||
else
|
||||
info "warewulf: mkfs: skipping /dev/disk/by-partlabel/rootfs"
|
||||
fi
|
||||
if true || ! already_formatted /dev/disk/by-partlabel/scratch; then
|
||||
info "warewulf: mkfs: formatting /dev/disk/by-partlabel/scratch"
|
||||
mkfs --type=ext4 -F /dev/disk/by-partlabel/scratch || die "warewulf: mkfs: failed to format /dev/disk/by-partlabel/scratch"
|
||||
mkfs --type=ext4 -F /dev/disk/by-partlabel/scratch || die "warewulf: mkfs: failed to format /dev/disk/by-partlabel/scratch"
|
||||
else
|
||||
info "warewulf: mkfs: skipping /dev/disk/by-partlabel/scratch"
|
||||
fi
|
||||
@@ -171,7 +171,7 @@ already_formatted() {
|
||||
if command -v mkfs >/dev/null ; then :
|
||||
if false || ! already_formatted /dev/disk/by-partlabel/rootfs; then
|
||||
info "warewulf: mkfs: formatting /dev/disk/by-partlabel/rootfs"
|
||||
mkfs --type=ext4 /dev/disk/by-partlabel/rootfs || die "warewulf: mkfs: failed to format /dev/disk/by-partlabel/rootfs"
|
||||
mkfs --type=ext4 /dev/disk/by-partlabel/rootfs || die "warewulf: mkfs: failed to format /dev/disk/by-partlabel/rootfs"
|
||||
else
|
||||
info "warewulf: mkfs: skipping /dev/disk/by-partlabel/rootfs"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user