[LEDE-DEV] mount_root skipped on initramfs builds

Josua Mayer josua.mayer97 at gmail.com
Sat Aug 6 09:25:26 PDT 2016


Hi everyone,

During my work on supporting a block-device as overlay partition,
without using extroot I came across this phenomenon:

When booting my mvebu-based board with an initramfs, mount_root was not
executed. This seems unusual to me, I certainly expected the init
process to be exactly the same.
So I traced the cause to line 15 in the 80_mount_root preinit script.
It says: [ "$INITRAMFS" = "1" ] || boot_hook_add preinit_main do_mount_root

Very clearly, this behaviour is intentional. Would anyone be willing to
shed some light on why this is?
Can it be removed? And if not: What is stopping us?

John I added you in CC because it is your commit that added the
initramfs-check:
https://git.lede-project.org/?p=source.git;a=blobdiff;f=package/base-files/files/lib/preinit/80_mount_root;h=9a99ee91097129205e7cee966ce4bf2ecd0d7c72;hp=ad24fb8ace70707e434c9980d948399834ce160f;hb=f43b7934d2850c2f545736253a0f8cbe4915fdff;hpb=1360067c4a75cd1804710e6f25871f695d3271b2

br
Josua Mayer



More information about the Lede-dev mailing list