procount / pinn

An enhanced Operating System installer for the Raspberry Pi
1.13k stars 123 forks source link

Support F2FS (kernel FS driver and F2FS tools) #397

Open busywait opened 4 years ago

busywait commented 4 years ago

The PINN UI currently supports backup and restore of OSs in ext4 and vfat file systems. I would like to be able to back up an OS, reformat its root partition to F2FS, and then restore the OS root into the F2FS partition.

procount commented 4 years ago

You could probably do this manually, by backing up, formatting as f2fs, then manually restoring the root tar.xz file. Your kernel would obviously have to support f2fs and there maybe some config changes to do as well.

PINN does not support f2fs atm, so if you did this you would no longer be able to backup the os and maybe some other features would not work.

I would need to add f2fs support to pinn for it to work fully.

busywait commented 4 years ago

I'd forgotten about needing to edit the OS /etc/fstab or for the change in partition type, and I've also just learned that Manjaro/Arch doesn't put an entry for the root filesystem in to /etc/fstab by default at all. Instead the rootfs and options are only those passed on the kernel command line: https://bbs.archlinux.org/viewtopic.php?id=242116.

In my Manjaro install the /boot/cmdline.txt includes root=LABEL=ROOT_MNJRO rw rootwait

In this case I'm expecting that the filesystem type is autodetected, and no change is needed. I'll try it and see. [Edit: the root fs type was autodetected, and I didn't need to make any change inside Manjaro to account for moving from ext4 to f2fs]

Is this feature suggestion appropriate for PINN, or does it take it away from being an OS installer and selector?

procount commented 4 years ago

I'm not sure about the conversion but certainly I may need to provide support to install or backup f2fs partitions.