←back to thread

144 points ksec | 2 comments | | HN request time: 0.671s | source
Show context
zahlman ◴[] No.44468213[source]
Does the filesystem actually need to be part of the kernel project to work? I can see where you'd need that for the root filesystem, but even then, couldn't one migrate an existing installation to a new partition with a different filesystem?
replies(4): >>44468621 #>>44468749 #>>44470079 #>>44471033 #
1. gizmo686 ◴[] No.44468749[source]
Even the root filesystem can be FUSE if you want it to. The only thing that needs to be in the kernel is the initial root filesystem driver. Nowadays that is pretty much always just compressed CPIO (initrd). At that point user space can do pretty much whatever before doing a pivot_root operation to wherever.
replies(1): >>44473636 #
2. tremon ◴[] No.44473636[source]
It's not really initrd though; the kernel uses initramfs, which is more like tmpfs (emulating a filesystem in the VFS cache) than a ramdisk (a preallocated piece of memory that emulates a block device).

The files are still loaded from a compressed cpio archive though, and because of the initrd legacy that file is still called initrd in most distributions.