Skip to content

initmpfs: use tmpfs instead of ramfs for rootfs

Rob Landley linux-fsdevel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5initmpfs: replace MS_NOUSER in initramfsfs/ramfs/inode.c+8 -13 replies
2/5initmpfs: Move bdi setup from init_rootfs to init_ramfsfs/ramfs/inode.c+20 -50 replies
3/5initmpfs: Move rootfs code from fs/ramfs/ to init/fs/namespace.c fs/ramfs/inode.c include/linux/init.h +2 more+38 -350 replies
4/5initmpfs: Make rootfs use tmpfs when CONFIG_TMPFS enabled.init/do_mounts.c mm/shmem.c+12 -20 replies
5/5initmpfs: Use initramfs if rootfstype= or root= specified.init/do_mounts.c+11 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] initmpfs: use tmpfs instead of ramfs for rootfs

Use tmpfs for rootfs when CONFIG_TMPFS=y and there's no root=. Specify rootfstype=ramfs to get the old initramfs behavior.

The previous initramfs code provided a fairly crappy root filesystem:
didn't let you --bind mount directories out of it, reported zero size/usage so it didn't show up in "df" and couldn't run things like rpm that query available space before proceeding, would fill up all available memory and panic the system if you wrote too much to it...

Using tmpfs instead provides a much better root filesystem.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>