modified: chr.sh

This commit is contained in:
elseif 2026-07-09 11:37:47 +08:00
parent dc20f46a94
commit 8991f41f0b

3
chr.sh
View File

@ -288,7 +288,8 @@ download_image(){
} }
create_autorun() { create_autorun() {
if LOOP=$(losetup -Pf --show chr.img 2>/dev/null); then LOOP=$(losetup -f)
if losetup -P "$LOOP" chr.img 2>/dev/null; then
sleep 1 sleep 1
MNT=/tmp/chr MNT=/tmp/chr
mkdir -p $MNT mkdir -p $MNT