This commit is contained in:
Yuri Zamyatin 2025-02-09 20:26:08 +00:00
parent ecb7f4e5af
commit 82d39545c7

9
arch-user/bin/make-iso.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
sudo rm -rf /tmp/archiso-work /tmp/archiso-out
cd ~/know/archiso
sudo mkarchiso -v -w /tmp/archiso-work -o /tmp/archiso-out "profile-$1"
iso=(/tmp/archiso-out/*)
sudo dd if="$iso" of="$2" status=progress bs=4M
sudo rm -rf /tmp/archiso-work /tmp/archiso-out