Fixing 781 and it's btrfs mountpoints and kernel parameters#905
Fixing 781 and it's btrfs mountpoints and kernel parameters#905Torxed merged 38 commits intov2.3.1-devfrom
Conversation
… it. Improved some logging and decreased the usage of try/except where unessecary (we can catch it higher up without catching and raising the same thing.
|
Current state is that it installs. For some reason the {
"/boot": {
"partition": {
"boot": true,
"encrypted": false,
"filesystem": {
"format": "fat32"
},
"format": true,
"mountpoint": "/boot",
"size": "513MB",
"start": "5MB",
"type": "primary",
"device_instance": "Partition(path=/dev/loop0p1",
"size=0.5": null,
"PARTUUID=db071b01-b344-4a76-b44c-6f2dba3b169e": null,
"fs=vfat)": null
}
},
"/": {
"partition": {
"btrfs": {
"subvolumes": {
"@": "/",
"@.snapshots": "/.snapshots",
"@home": "/home",
"@log": "/var/log",
"@pkg": "/var/cache/pacman/pkg"
}
},
"encrypted": false,
"filesystem": {
"format": "btrfs"
},
"format": true,
"mountpoint": "/",
"size": "100%",
"start": "518MB",
"type": "primary",
"device_instance": "Partition(path=/dev/loop0p2",
"size=19.5": null,
"PARTUUID=5ea67532-dc42-4076-a732-27eb2b8d6ad4": null,
"fs=btrfs)": null
},
"mount_options": [
"subvol=@/"
]
}
}
|
… mounting. Still got issues.
wllacer
left a comment
There was a problem hiding this comment.
From my phone.
I think you don't need the mountpoints.update at line 213 (and others) of installer.py
In the worst case, i've seen you ported manage_btrs_subvolumes from máster. IIRC i made It to behave slightly diferent. That could imply you need to Port mount_ordered_partitions also. And this is a lap of faith.
I'd rather revert this patch and try with #906 only
…all subvolumes are mountpoint targets, but with relevant information. Had to work that into Partition().mount to support re-mounting a partition multiple times. That will have to be cleaned up.
|
In #906 the subvolumes doesn't get mounted when I tried. Or so I'm 90% sure of. There's still some questionable code, will sleep on it before I merge this. As this logic only appear to happen surrounding btrfs subvolumes, and we've fixed this in The PR is ready for review and testing, but again, keep in mind:
|
|
This is the current state of the code in Not sure this is enough, I'm missing the |
I think the output is totally Ok. You have the @home subvolume correctly mounted |
|
Tested with and without encryption using One thing that has me concerned is that every subvolume gets I'm not far away at least. |
The btrfs code in 2.3.1 DOES NOT support encrypted partitions. It was clearly documented, and i thought i had a explicit branching in the code. If you want it, you need to put the whole #838. btw. i'm trying to test v.2.3.1.dev but I've run in an exception Do you remember having anything like that ? |
|
I got it supporting encryption now. So far it encrypts the root partition I do not get |
|
A correction, We managed to support encryption but not the generation of key-files for btrfs. It was the last thing that came out in #787 The reason why we didn't support encryption, was that encryption and key handling has to be done, in btrfs as in the rest of the filesystems, at the physical partition level. |
|
I solved that by checking if the keyfile already exists on the desired destination (which is based on loopdev name). Something that we don't really do on |
|
Old function: archinstall/archinstall/lib/user_interaction.py Lines 195 to 204 in becb423 This sets all partitions that are not |
Good idea
I remember the same problem, I solved it checking if the partitiion didn't contain the root / directory
|
|
Apparemtly Instead, we check if either shutdown or the session exit code is 0, which should mean all is well. I'll have a look at |
what kind of target disk are you using? I wasn't able to boot into Grub with a loopback device, IIRC not even with ext4. In fact the only way i could make it booting was within a virtualbox session, with an vdi target |
I'm using archtest |
…installed before installing it (to avoid multiple calls to pacstrap even tho it doesn't hurt)
|
Think I found the cause, these two lines doesn't do what it's supposed to: archinstall/archinstall/lib/installer.py Lines 731 to 732 in 0761f52 It's called (verified through |
|
|
|
Works now with the latest change from #793 :D |
|
If everyone is fine with this PR, I'm merging it. Pinging a few that I know has experience with these things: @wllacer @dylanmtaylor |
|
I like what you did on the naming of the encrypted devices ... as for the rest, it feels a lot better |
What specifically do you not like? I can change things around and modify it. |
|
Just the opposite. I find the final result very good.
Sorry for Haven't been able to follow the grub issue further. Today isn't
the BEST day
El mié., 26 ene. 2022 13:26, Anton Hvornum ***@***.***>
escribió:
… I like what you did on the naming of the encrypted devices ... as for the
rest, it feels a lot better With a 2.3.1-dev from yesterday I've tested
Grub+btrfs+ Uefi under VirtualBox. I could boot into Archlinux, almost ...
It hung while loading the initial ram disk
What specifically do you not like? I can change things around and modify
it.
But I would need to know what doesn't feel great.
—
Reply to this email directly, view it on GitHub
<#905 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACSDTYAXJTZLTZCXESBCUTDUX7R5TANCNFSM5MYW52RA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ah apologies, my English skills sometimes messes with me hehe. Read your message as if there was something wrong with |
…d-fix-btrfs-mounts








/@) into/mnt/archinstall/@homeinto their place inside the/mnt/archinstallpacstrapin/mnt/archinstallgenfstab -U >> /mnt/archinstall/etc/fstab(the currently generated /etc/fstab is incorrect, but it should fix itself after solving the items above).rootflags=subvol=/@parameter, so it mounts the correct subvolume as root without having to usebtrfs subvolume set-default. To accomplish this, configure the bootloader to pass that flag to the Linux kernel, example for systemd-boot:Tested
systemd-bootwith subvolumessystemd-boot+luks2with subvolumesgrubin BIOS with subvolumesgrubin BIOS +luks2with subvolumesgrubin UEFI with subvolumesgrubin UEFI +luks2with subvolumes