VoidLinuxInstaller/old_unused
2024-07-04 14:07:12 +03:00
..
btrfs_map_physical.c Add program to compute resume offset 2022-08-07 17:39:10 +02:00
chroot.sh modified: chroot.sh 2024-07-04 14:07:12 +03:00
grub_ckb.sh Keep unused grub_ckb.sh script up to date 2022-09-05 19:26:06 +02:00
LICENSE Add program to compute resume offset 2022-08-07 17:39:10 +02:00
README.md Let user decide to format EFI partition or not. 2023-11-27 09:47:26 +01:00

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