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

Open
#28 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
linux, shell

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
3
Forks
0
Avg merge
2m
Merged PRs (30d)
59

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from A21-devs/Virtual-Machine-Manager

All issues in A21-devs/Virtual-Machine-Manager

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.