2026-05-27 09:12:36 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2026-06-10 12:02:38 +02:00
|
|
|
die() { echo "$(basename $0): [die] $@" >&2 ; exit 1 ; }
|
|
|
|
|
|
2026-05-27 09:12:36 +02:00
|
|
|
# requires lorax, genisoimage: dnf install lorax genisoimage
|
2026-06-10 12:02:38 +02:00
|
|
|
|
2026-06-09 15:35:06 +02:00
|
|
|
isopath=/nfs/sw/os/rocky/Rocky-9.7-x86_64-minimal.iso
|
2026-06-10 12:02:38 +02:00
|
|
|
target=/nfs/pve/template/iso/custom.iso
|
2026-06-09 15:44:41 +02:00
|
|
|
ks=/users/bart/git/rocky/kickstart/rocky-9.cfg
|
2026-06-10 12:02:38 +02:00
|
|
|
custom=/users/bart/git/rocky/custom
|
2026-05-27 09:12:36 +02:00
|
|
|
|
|
|
|
|
rpm -q --quiet lorax || die "lorax not installed"
|
|
|
|
|
rpm -q --quiet genisoimage || die "genisoimage not installed"
|
|
|
|
|
|
2026-06-10 12:02:38 +02:00
|
|
|
test -f $target && rm -f $target
|
|
|
|
|
|
|
|
|
|
sudo mkksiso -a $custom --ks=$ks $isopath $target
|
2026-05-27 09:12:36 +02:00
|
|
|
|