Fix: Update readme.md to correct disk patch reference and use variable for disk commands

This commit is contained in:
Marco van Zijl 2025-05-08 19:10:59 +02:00
parent 14eb8200b0
commit e04490b884

View File

@ -86,7 +86,7 @@ talosctl gen config \
--config-patch @patches/cilium.yaml \ --config-patch @patches/cilium.yaml \
--config-patch @patches/scheduling.yaml \ --config-patch @patches/scheduling.yaml \
--config-patch @patches/discovery.yaml \ --config-patch @patches/discovery.yaml \
--config-patch @patches/diskselector.yaml \ --config-patch @patches/disk.yaml \
--config-patch @patches/vip.yaml \ --config-patch @patches/vip.yaml \
--config-patch @patches/metrics.yaml \ --config-patch @patches/metrics.yaml \
$CLUSTER_NAME \ $CLUSTER_NAME \
@ -194,8 +194,8 @@ kubectl run -it --rm \
Search for the correct disk with `blkid`, set `DISK=/dev/sdX`, then run (some of) the following commands: Search for the correct disk with `blkid`, set `DISK=/dev/sdX`, then run (some of) the following commands:
```bash ```bash
ceph-volume lvm zap /dev/sdX --destroy ceph-volume lvm zap $DISK --destroy
wipefs -a /dev/sdX wipefs -a $DISK
# Zap the disk to a fresh, usable state (zap-all is important, b/c MBR has to be clean) # Zap the disk to a fresh, usable state (zap-all is important, b/c MBR has to be clean)
sgdisk --zap-all $DISK sgdisk --zap-all $DISK