diff options
Diffstat (limited to 'meta/classes-recipe/overlayfs-etc.bbclass')
-rw-r--r-- | meta/classes-recipe/overlayfs-etc.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes-recipe/overlayfs-etc.bbclass b/meta/classes-recipe/overlayfs-etc.bbclass index 0c7834d01f..d339fbbeee 100644 --- a/meta/classes-recipe/overlayfs-etc.bbclass +++ b/meta/classes-recipe/overlayfs-etc.bbclass | |||
@@ -41,6 +41,7 @@ OVERLAYFS_ETC_USE_ORIG_INIT_NAME ??= "1" | |||
41 | OVERLAYFS_ETC_MOUNT_OPTIONS ??= "defaults" | 41 | OVERLAYFS_ETC_MOUNT_OPTIONS ??= "defaults" |
42 | OVERLAYFS_ETC_INIT_TEMPLATE ??= "${COREBASE}/meta/files/overlayfs-etc-preinit.sh.in" | 42 | OVERLAYFS_ETC_INIT_TEMPLATE ??= "${COREBASE}/meta/files/overlayfs-etc-preinit.sh.in" |
43 | OVERLAYFS_ETC_EXPOSE_LOWER ??= "0" | 43 | OVERLAYFS_ETC_EXPOSE_LOWER ??= "0" |
44 | OVERLAYFS_ETC_CREATE_MOUNT_DIRS ??= "1" | ||
44 | 45 | ||
45 | python create_overlayfs_etc_preinit() { | 46 | python create_overlayfs_etc_preinit() { |
46 | overlayEtcMountPoint = d.getVar("OVERLAYFS_ETC_MOUNT_POINT") | 47 | overlayEtcMountPoint = d.getVar("OVERLAYFS_ETC_MOUNT_POINT") |
@@ -62,6 +63,7 @@ python create_overlayfs_etc_preinit() { | |||
62 | initBaseName = oe.path.join(d.getVar("base_sbindir"), "init") | 63 | initBaseName = oe.path.join(d.getVar("base_sbindir"), "init") |
63 | origInitNameSuffix = ".orig" | 64 | origInitNameSuffix = ".orig" |
64 | exposeLower = oe.types.boolean(d.getVar('OVERLAYFS_ETC_EXPOSE_LOWER')) | 65 | exposeLower = oe.types.boolean(d.getVar('OVERLAYFS_ETC_EXPOSE_LOWER')) |
66 | createMoundDirs = oe.types.boolean(d.getVar('OVERLAYFS_ETC_CREATE_MOUNT_DIRS')) | ||
65 | 67 | ||
66 | args = { | 68 | args = { |
67 | 'OVERLAYFS_ETC_MOUNT_POINT': overlayEtcMountPoint, | 69 | 'OVERLAYFS_ETC_MOUNT_POINT': overlayEtcMountPoint, |
@@ -69,7 +71,8 @@ python create_overlayfs_etc_preinit() { | |||
69 | 'OVERLAYFS_ETC_FSTYPE': overlayEtcFsType, | 71 | 'OVERLAYFS_ETC_FSTYPE': overlayEtcFsType, |
70 | 'OVERLAYFS_ETC_DEVICE': overlayEtcDevice, | 72 | 'OVERLAYFS_ETC_DEVICE': overlayEtcDevice, |
71 | 'SBIN_INIT_NAME': initBaseName + origInitNameSuffix if useOrigInit else initBaseName, | 73 | 'SBIN_INIT_NAME': initBaseName + origInitNameSuffix if useOrigInit else initBaseName, |
72 | 'OVERLAYFS_ETC_EXPOSE_LOWER': "true" if exposeLower else "false" | 74 | 'OVERLAYFS_ETC_EXPOSE_LOWER': "true" if exposeLower else "false", |
75 | 'CREATE_MOUNT_DIRS': "true" if createMoundDirs else "false" | ||
73 | } | 76 | } |
74 | 77 | ||
75 | if useOrigInit: | 78 | if useOrigInit: |