Closed Torxed closed 1 week ago
@Torxed there's no btrfs subvolumes specified, looking at the logs it shows
Mounting ordered layout
Unlocking luks2 device: /dev/sda2
cryptsetup open output:
Mounting partition layout
So it's correctly unlocking the /
root partition, then this code should be executed https://github.com/archlinux/archinstall/blob/master/archinstall/lib/installer.py#L336-L343
which will mount the relevant btrfs subvolumes, but in your config no subvolumes were specified. Is this not correct?
Weird, I basically did a "next next finish" installation and selected all the defaults. So that would probably mean that some of the selected options isn't behaving expectedly.
I'll record all the steps in a bit.
@Torxed I recorded the btrfs selection in master and it seems to provide the correct layout when selecting the default one https://github.com/user-attachments/assets/ddd51480-acb3-4625-8d95-8750ff648fc7
@Torxed isn't that what I mentioned here https://github.com/archlinux/archinstall/issues/2793#issuecomment-2466476359?
If you choose btrfs and don't specify subvolumes what is the desired behaviour?
Just as a side note I think this behaviour has been there for a while, not saying it's correct but that it might not be a release blocker in that case?
@Torxed isn't that what I mentioned here https://github.com/archlinux/archinstall/issues/2793#issuecomment-2466476359?
Indeed, I didn't fully understand until today.
It used to be that the default menu option was yes
for:
"Do you wish to use subvolumes"?
Which is probably why I got thrown off a bit of why it didn't create the subvolumes (as I didn't read obviously what I was selecting).
Just as a side note I think this behaviour has been there for a while
Just tested to be sure and the current stable release mounts the btrfs partition as a normal partition:
So something has changed between 2.8.6 and master that broke this mount behavior. And this being the 2.8.6 config without subvolumes:
{
"__separator__": null,
"additional-repositories": [],
"archinstall-language": "English",
"audio_config": null,
"bootloader": "Systemd-boot",
"config_version": "2.8.6",
"debug": false,
"disk_config": {
"config_type": "default_layout",
"device_modifications": [
{
"device": "/dev/sda",
"partitions": [
{
"btrfs": [],
"dev_path": null,
"flags": [
"Boot",
"ESP"
],
"fs_type": "fat32",
"mount_options": [],
"mountpoint": "/boot",
"obj_id": "297b0f69-7111-4fb8-bdc5-1d056c9e82c5",
"size": {
"sector_size": {
"unit": "B",
"value": 512
},
"unit": "GiB",
"value": 1
},
"start": {
"sector_size": {
"unit": "B",
"value": 512
},
"unit": "MiB",
"value": 1
},
"status": "create",
"type": "primary"
},
{
"btrfs": [],
"dev_path": null,
"flags": [],
"fs_type": "btrfs",
"mount_options": [
"compress=zstd"
],
"mountpoint": "/",
"obj_id": "0f4064ae-8523-429e-9cf2-442fb0848095",
"size": {
"sector_size": {
"unit": "B",
"value": 512
},
"unit": "B",
"value": 33283899392
},
"start": {
"sector_size": {
"unit": "B",
"value": 512
},
"unit": "B",
"value": 1074790400
},
"status": "create",
"type": "primary"
}
],
"wipe": true
}
]
},
"disk_encryption": null,
"hostname": "archlinux",
"kernels": [
"linux"
],
"locale_config": {
"kb_layout": "sv-latin1",
"sys_enc": "UTF-8",
"sys_lang": "en_US"
},
"mirror_config": {
"custom_mirrors": [],
"mirror_regions": {
"Sweden": [
"https://mirror.osbeck.com/archlinux/$repo/os/$arch",
"https://mirror.braindrainlan.nu/archlinux/$repo/os/$arch",
"http://ftp.myrveln.se/pub/linux/archlinux/$repo/os/$arch",
"http://mirror.accum.se/mirror/archlinux/$repo/os/$arch",
"https://ftp.myrveln.se/pub/linux/archlinux/$repo/os/$arch",
"https://mirror.accum.se/mirror/archlinux/$repo/os/$arch",
"http://mirror.bahnhof.net/pub/archlinux/$repo/os/$arch",
"https://mirror.bahnhof.net/pub/archlinux/$repo/os/$arch",
"http://ftpmirror.infania.net/mirror/archlinux/$repo/os/$arch",
"http://ftp.lysator.liu.se/pub/archlinux/$repo/os/$arch",
"https://ftp.lysator.liu.se/pub/archlinux/$repo/os/$arch"
]
}
},
"network_config": {},
"no_pkg_lookups": false,
"ntp": true,
"offline": false,
"packages": [],
"parallel downloads": 0,
"profile_config": null,
"save_config": null,
"script": "guided",
"silent": false,
"skip_ntp": false,
"skip_version_check": false,
"swap": true,
"timezone": "UTC",
"uki": false,
"version": "2.8.6"
}
This is a regression caused by b470b16e.
@Torxed I'll try to have a look at it today
Too late to solve the problem but please review the pull request!
I was just about to say that I can only reproduce this if I use encryption ontop of BTRFS without subvolumes. I'll test the PR in the morning as it's getting quite late here.
Which ISO version are you using?
master
Config
Install log
Mounts during install