New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Btrfs subvolumes support #9
Comments
I you no one else volunteered I could give it a try. |
Thanks! Greatly appreciated! I poached the btrfs subvolume functions from the old cli-installer https://github.com/Chrysostomus/manjaro-architect/blob/master/bin/btrfs-subvol-functions.in |
I must conclude I am a lousy shell scripter :) But you manage all right :) This might take me some time cause I can't get the my brain about the logic. C#, javascript, Python was a lot easier to grasp than shell :) |
It's okay. The schedule for this feature is "before summer" The logic I would think that we need is
No idea how to handle raid options, but I find it a lesser priority |
On Tue, 2017-02-21 at 03:56 -0800, Chrysostomus wrote:
It's okay. The schedule for this feature is "before summer"
The logic I would think that we need is
after choosing mount options for partition, if the chosen partition
is btrfs, start subvolume creation function
subvolume creation function: ask user if they want to create a
subvolume on this partition. Keep asking until they choose "done".
if user chooses yes, ask for name of the subvolume. In next window,
ask mountpoint for the subvolume.
mount chosen mountpoint to chosen directory with mount options from
previous menu
repeat loop
when loop exits, continue to next
No idea how to handle raid options, but I find it a lesser priority
There is already som btrfs support - I just installed in a vm with
btrfs
|
Yes, I install half of the test systems on btrfs too. But if user wants to install on btrfs subvolumes to be able to take snapshots, he needs to create and mount them manually separate of the installer. Idea would be to to integrate subvolume creation to existing btrfs functionality. |
On Tue, 2017-02-21 at 04:28 -0800, Chrysostomus wrote:
Yes, I install half of the test systems on btrfs too. But if user
wants to install on btrfs subvolumes to be able to take snapshots, he
needs to create and mount them manually separate of the installer.
Idea would be to to integrate subvolume creation to existing btrfs
functionality.
I see. I have no knowledge of btrfs so I have familiarize myself with it.
But I find a lot of red flags on Arch wiie considering btrfs - so it seems it is not a better file system.
https://wiki.archlinux.org/index.php/Btrfs#File_system_creation
It seems risky to incorporate advanced features such as snapshots when so many red flags are up.
|
Subvolumes, snapshots and compression are stable features. Raid is too, except for raid5/6. The unstable ones are fsck, dedublication, quotas and raid5/6. Nothing in installer guides user to try unstable features. And swap files cannot be used to. Most gotchas of btrfs are already automatically handled handled by the installer. Incompatible settings are disabled from grub and fsck is removed from mkinitcpio.conf. |
I continued your thoughts from
select_filesystem
https://wiki.archlinux.org/index.php/Btrfs#Mounting_subvolumes the flow
mkdir -p /mnt/btrfs It would be sane - in case of average user - to create a default structure for system if user choose btrfs?
|
@Chrysostomus This shell scripting takes a special brain which I do not have. At least I tried - keep up the good work 😺 t |
Thanks, I appreciate the effort! |
I noticed now that the Acidburn0zzz branch has btrfs implemented. I'll take a look if we can import that... |
I have been thinking about this. It feels too complicated to properly implement btrfs subvolumes in the current mount partitions phase, because the phase is split across several functions and the times I can work with this are few and far between. I think it would be, for the time being, make a separate "mount btrfs subvolumes" menu item. It would be ran after basic partition mounting. It would
What do you guys think? @Oberon2007 @papajoker ? |
something like this:
|
Making progress with this after moving it within the root volume mounting action. At least automatic mode seems to work now. |
Pushed now to the online repo. Automatic and manual modes are still a bit rudimentary, but they seem to work somewhat... |
I wish to port btrfs subvolume functions from previous manjaro cli-installer, so that installation to btrfs subvolumes can be done without manual mounting.
The text was updated successfully, but these errors were encountered: