VoidLinuxInstaller/old_unused/README.md
Le0xFF 51c1a40e51 Let user decide to format EFI partition or not.
- This closes issue/request #10.
2023-11-27 09:47:26 +01:00

1.2 KiB

Old or unused files

This folder contains old files or unused files, but that are handy to keep stored somewhere.

The chroot.sh script is an old version of a script meant to be run during Void Linux installation that got merged into the main installation script.

The btrfs_map_physical.c is a C program, useful to find physical offset for the swapfile, mentioned in the Arch Wiki. The program got also merged into the main installation script.
I'm not the developer of this program, the original script can be found in this repo; I just copied it here with its MIT license.

Since version 6.1, btrfs_map_physical.c is not needed anymore. btrfs-progs now offers:

  • btrfs filesystem mkswapfile swapfile to create the swapfile;
  • btrfs inspect-internal map-swapfile swapfile to print the device physical offset and the adjusted value for /sys/power/resume_offset. Note that the value is divided by page size.
    • For scripting and convenience the option -r will print just the offset: btrfs inspect-internal map-swapfile -r swapfile