Bug 460962 - KDE Neon install fails to boot when using btrfs
Summary: KDE Neon install fails to boot when using btrfs
Status: RESOLVED FIXED
Alias: None
Product: neon
Classification: KDE Neon
Component: Live/Install images (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-24 22:54 UTC by Julius Vitkauskas
Modified: 2023-12-18 12:21 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julius Vitkauskas 2022-10-24 22:54:14 UTC
SUMMARY
KDE Neon install fails to boot when using btrfs. See solution below.


STEPS TO REPRODUCE
1. Download neon-user-20221023-0714.iso
2. Install it on btrfs root file system (choose manual partitioning or add filesystem option to calamares config)
3. Try booting the system and you won't get to the desktop

OBSERVED RESULT
System hangs with this text shown on the screen:
[FAILED] Failed to start Snap Daemon.
[FAILED] Failed to start Migrate UID 1000 from semi-wrong groups to correct ones..
[FAILED] Failed to start Snap Daemon.
[FAILED] Failed to start Snap Daemon.
[FAILED] Failed to start Snap Daemon.
[FAILED] Failed to start Snap Daemon.
[FAILED] Failed to start Snap Daemon.
[FAILED] Failed to start Wait until snapd is fully seeded.

EXPECTED RESULT
System boots to desktop

SOFTWARE/OS VERSIONS
neon-user-20221023-0714.iso

ADDITIONAL INFORMATION
It seems like mount option is incorrect for btrfs: it should be space_cache=v2 instead of space_cache
This can be fixed by editing /calamares/desktop/modules/fstab.conf and replacing space_cache with space_cache=v2
Comment 1 Julius Vitkauskas 2022-10-24 22:58:14 UTC
The way i figured this out is that i booted into rescue mode (added "1" to kernel params) and got a shell, tried to remount / rw and it threw an error message, googled the error message and saw that space_cache=v2 option helps.
Comment 2 Clay Weber 2022-10-25 11:36:07 UTC
I am
Comment 3 Clay Weber 2022-10-25 12:08:06 UTC
(In reply to Clay Weber from comment #2)
> I am

I am also seeing this, tested on two systems and in virt-manager
Comment 4 Uwe Köhler 2022-12-28 15:37:03 UTC
I seem to remember that the installation into a btrfs partition newly created crashed.

Will not try again since it took 15 attempts to get KDE Neon installed.

Operating System: KDE neon 5.26
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 5.15.0-56-generic (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5700U with Radeon Graphics
Memory: 15,0 GiB of RAM
Graphics Processor: AMD RENOIR
Manufacturer: Acer
Product Name: Aspire A515-45G
System Version: V1.08
Comment 5 Mark Penner 2023-01-11 15:46:10 UTC
I also installed to a btrfs partition and the booting process hung with the same error messages. I fixed it by rebooting into another linux installation on that computer, mounted the partition with neon installed on it, and edited /etc/fstab, changing space_cache to space_cache=v2 in the mount options for both / and /home. I could then reboot into neon with no problems.
Comment 6 Clay Weber 2023-04-08 18:28:45 UTC
I am seeing this again today, 
Need to edit the fstab for the btrfs mounts to change space_cache to space_cache=v2

/calamares/desktop/modules/fstab.conf can be edited during the live session to replace space_cache with space_cache=v2 to fix this *before* beginning an installation
Comment 7 Carlos De Maine 2023-12-18 10:15:45 UTC
calamares has been updated to 3.3.0 which according to release notes handles btrfs file systems by no longer adding space_cache=* of any variety to fstab.  all modern kernels automatically default to space_cache version2 and btrfs-progs no longer needs a configuration, it checks version 1 then falls back to version 2.

new iso building now.
Comment 8 Carlos De Maine 2023-12-18 12:21:05 UTC
needed an updated calamares-settings as well which is now in user.  new iso running now.  verified that btrfs install works in a virtualbox vm.
closing as fixed.