x-initrd.mount now has different meanings, if fstab-generator is called
in the initramfs.
initrd:/etc/fstab and x-initrd.mount defines mounts for the
initrd-root-fs.target
initrd:/sysroot/etc/fstab and x-initrd.mount defines mounts for the
initrd-fs.target
streq(me->mnt_dir, "/usr");
}
-static bool mount_is_rootfs(struct mntent *me) {
- assert(me);
-
- return hasmntopt(me, "x-initrd.rootfs");
-}
-
static int add_mount(
const char *what,
const char *where,
post = SPECIAL_INITRD_FS_TARGET;
pre = NULL;
setup = NULL;
- } else if (mount_is_rootfs(me)) {
+ } else if (mount_in_initrd(me)) {
post = SPECIAL_INITRD_ROOT_FS_TARGET;
pre = NULL;
setup = NULL;