Alpine Diskless

Mit Hilfe von diesem Reddit Post.

  1. Vom Install media booten
  2. setup-alpine bis man mit apk repository setup fertig ist, danach Ctrl+C
  3. apk add wipefs util-linux
  4. lsblk und schauen welche Platte man als boot nutzen will
  5. wipefs --all /dev/... (Nuked die Platte leer)
  6. fdisk /dev/...
    1. n - New
    2. p - Primary
    3. 1 - Partitionnummer 1
    4. <enter> - erster Sektor
    5. <enter> - letzter Sektor
    6. t - Partitionstyp ändern
    7. c - Win95 FAT
    8. a - Bootable
    9. w - Schreiben
  7. mkfs.vfat /dev/...1
  8. df ausführen und nach einem read-only mount suchen wie /media/cdrom oder /media/usb.
  9. setup-bootable /media/... /dev/...1
  10. reboot und installationsmedium entfernen
  11. Als root anmelden
  12. setup-alpine, wenn nach disks gefragt wird:
    1. Disks: none
    2. Storing configs: bootplatte nehmen bsp. sda1 (ohne /dev/)
    3. Storing cache: <enter> (Standard von /media/...1/cache)
  13. lbu commit um die Änderungen zu speichern

LBU

lbu commit oder lbu ci

Speichert Änderungen.

Option -d anhängen um alte Overlay files zu löschen.

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9