DECLAIMER: This has only been tested on KDEneon Stable in a virtual machine.
Calamares:
I was reading some Calamares documentation and saw where the latest versions allow the distro developer to customize not only the mount points but also the BTRFS subvolume names.
This is notable because some of us like to install multiple distros to a single BTRFS file system. The default subvolumes used by *buntus when using BTRFS are "@" for root and "@home" for home. This is fine and dandy until you want to install a second distro. Then you have to edit fstab and grub.cfg and rename the subvolumes before installing the second (or third or fourth) distro. A typo can be disastrous! So I went looking...
...and found it!
Using a KDEneon ISO, the subvolume names are in this file: /lib/X86_64-linux-gnu/calamares/modules/mount/main.py
On line 165 , you'll find these entries:
...subvolume="/@"...
...subvolume'"/@home"...
It's as simple as changing those two subvolume names and then launching the installer.
My process:
Things to note:
...see post below.
Calamares:
I was reading some Calamares documentation and saw where the latest versions allow the distro developer to customize not only the mount points but also the BTRFS subvolume names.
This is notable because some of us like to install multiple distros to a single BTRFS file system. The default subvolumes used by *buntus when using BTRFS are "@" for root and "@home" for home. This is fine and dandy until you want to install a second distro. Then you have to edit fstab and grub.cfg and rename the subvolumes before installing the second (or third or fourth) distro. A typo can be disastrous! So I went looking...
...and found it!
Using a KDEneon ISO, the subvolume names are in this file: /lib/X86_64-linux-gnu/calamares/modules/mount/main.py
On line 165 , you'll find these entries:
...subvolume="/@"...
...subvolume'"/@home"...
It's as simple as changing those two subvolume names and then launching the installer.
My process:
- Boot to the KDEneon ISO.
- Select "Try before installing" rather than "Install".
- Open Konsole and edit the file above: sudo nano /lib/X86_64-linux-gnu/calamares/modules/mount/main.py
- Scroll to line 165 and change the subvolume names (I used @neon and @neon_home) and save the file.
- Run the installer.
Things to note:
- I used a virtual machine and have not tested this on bare metal but I have no reason to believe the results would vary.
- The actual line in the above edited file may change with distros or versions so you may have to search for "@" and "@home" in the file.
- This may not be obvious to everyone; You're editing a file in a "live" environment so "saving" your edit only lasts until the first reboot. If you want to do this again, or mess up your install and want to reinstall, you have to do the edit again - and every time you reboot.
...see post below.
Comment