From 93c785ab5b3d42a053508a9d6cf57c3f9062e91d Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Mon, 18 Jan 2021 18:09:15 -0500 Subject: got zero-copy partitioning to work w/ btrfs and sfdisk --- src/parted-usb.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/parted-usb.sh') diff --git a/src/parted-usb.sh b/src/parted-usb.sh index 0eafe86..fca8988 100755 --- a/src/parted-usb.sh +++ b/src/parted-usb.sh @@ -212,7 +212,14 @@ add_grub_cfg() individualize() { mkdir -p "$mnt" - mountpoint -q "$mnt" || mount "$part"3 "$mnt" + ( + set +e + losetup -a >&2 + lsblk >&2 + mount|grep $PWD >&2 + : OK + ) + mountpoint "$mnt" || mount "$part"3 "$mnt" add_keys add_initrd "$samizdat_linux_dir"/ "${version_suffix}" add_grub_cfg -- cgit v1.2.3