From 398bf1150dc89036fddb6218f66a953d37357a5e Mon Sep 17 00:00:00 2001 From: smu Date: Sun, 15 Sep 2024 17:10:19 +0200 Subject: [PATCH] bzip2 doesn't need sudo as long as the order is correct. --- installstick/dlg_platte_bespielen_btrfs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installstick/dlg_platte_bespielen_btrfs.sh b/installstick/dlg_platte_bespielen_btrfs.sh index aef5565..fc20d91 100755 --- a/installstick/dlg_platte_bespielen_btrfs.sh +++ b/installstick/dlg_platte_bespielen_btrfs.sh @@ -75,7 +75,8 @@ fi case "$IMG" in *.bz2) - sudo dd if="$IMG" bs=1M status=progress | sudo bzip2 -d > "$DEV" + # alternativ: `bzcat` statt `bzip2 -dc` + bzip2 -dc "$IMG" | sudo dd of="$DEV" bs=1M status=progress ;; *) sudo dd if="$IMG" of=$DEV bs=1M status=progress