Guest setup: support non-Debian guests and btrfs swap files

Offen
#28 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
linux, shell

Rechercherichtung

Start in setup-save-state.sh: find the distro check that requires apt-get and update-initramfs, and the swap-file block that uses filefrag to compute the resume offset. The issue names btrfs inspect-internal map-swapfile -r and chattr +C as the btrfs path, but the scope is open, so pick one item (for example btrfs swap) first. Done means that path produces the right offset and unsupported guests still exit with a clear error.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement

setup-save-state.sh stops on anything without apt-get/update-initramfs, and only makes a swap file on ext4 (filefrag gives the wrong resume offset on btrfs).

Worth covering:

  • btrfs: btrfs inspect-internal map-swapfile -r /swapfile gives the offset, and the file needs chattr +C before it's filled
  • dracut-based distros (Fedora, Arch with dracut): resume goes into the dracut config instead of initramfs-tools
  • systemd-boot instead of GRUB

Fine to do these one at a time. The script should keep failing loudly for anything it doesn't handle.

Vorherrschende Sprache
TypeScript
Sterne
3
Forks
0
Ø Merge
2 Min.
Gemergte PRs (30 T.)
41

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus A21-devs/Virtual-Machine-Manager

Alle Issues in A21-devs/Virtual-Machine-Manager

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.