Repository navigation
Commit 083cb78
cks: set CDROM volume label when building the binaries ISO
The CKS nodes locate the binaries ISO purely by its ISO 9660 volume label:
output=`blkid -o device -t LABEL=CDROM` (conf/k8s-control-node.yml)
but create-kubernetes-binaries-iso.sh invoked mkisofs without -V, relying on
the tool's default volume ID. That default is not portable:
genisoimage / cdrkit (Debian, Ubuntu) -> CDROM
xorriso mkisofs compat mode (EL8+) -> ISOIMAGE
genisoimage has not been available since EL8, where mkisofs is provided by
xorriso, so an ISO built on EL8/EL9/EL10 gets LABEL="ISOIMAGE". The nodes then
never mount it, loop on "Waiting for Binaries directory /mnt/k8sdisk/ to be
available" until the offline install times out, and silently fall through to
installing from the Internet instead of using the pinned ISO contents.
Pass -V CDROM explicitly so the output no longer depends on which ISO tool the
build host happens to provide. This is a no-op on hosts where the script works
today, since CDROM is already the genisoimage default.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 8eeccdb commit 083cb78
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
152 | 156 | | |
153 | 157 | | |
0 commit comments