Le0xFF / VoidLinuxInstaller

A bash script to install Void Linux with optional LUKS encryption, optional LVM, btrfs filesystem and optional swap as file.
GNU Affero General Public License v3.0
53 stars 8 forks source link

Cannot open /var/swap/swapfile: No such file or directory #11

Closed smartsyncing closed 10 months ago

smartsyncing commented 1 year ago

When booting a timeline snapper snapshot from grub, that error appears after attempting to initialise swap, and an emergency shell starts until I run exit.

Le0xFF commented 10 months ago

Hello and sorry for late reply!

The one you described was a "non-issue" from my point of view, since as you also said, after typing exit, you could boot the snapper snapshot and eventually restore your system, regardless of swap partition.

From commit https://github.com/Le0xFF/VoidLinuxInstaller/commit/fededc149050a0536998c3063f1d8a25b88159ef issue should be fixed! Now a proper and dedicated @swap subvolume is created to store swapfile and that subvolume is also mounted at boot (through /etc/fstab) if user wants to create a swapfile. If user doesn't want a swapfile, the subvolume will not be mounted, but @swap subvolume will still be present. I don't think that having and empty unused subvolume will be a big problem! :smile: