diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/overlayfs-etc.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/overlayfs-etc.bbclass b/meta/classes/overlayfs-etc.bbclass index 91afee695c..40116e4c6e 100644 --- a/meta/classes/overlayfs-etc.bbclass +++ b/meta/classes/overlayfs-etc.bbclass | |||
| @@ -34,6 +34,7 @@ OVERLAYFS_ETC_DEVICE ??= "" | |||
| 34 | OVERLAYFS_ETC_USE_ORIG_INIT_NAME ??= "1" | 34 | OVERLAYFS_ETC_USE_ORIG_INIT_NAME ??= "1" |
| 35 | OVERLAYFS_ETC_MOUNT_OPTIONS ??= "defaults" | 35 | OVERLAYFS_ETC_MOUNT_OPTIONS ??= "defaults" |
| 36 | OVERLAYFS_ETC_INIT_TEMPLATE ??= "${COREBASE}/meta/files/overlayfs-etc-preinit.sh.in" | 36 | OVERLAYFS_ETC_INIT_TEMPLATE ??= "${COREBASE}/meta/files/overlayfs-etc-preinit.sh.in" |
| 37 | OVERLAYFS_ETC_EXPOSE_LOWER ??= "0" | ||
| 37 | 38 | ||
| 38 | python create_overlayfs_etc_preinit() { | 39 | python create_overlayfs_etc_preinit() { |
| 39 | overlayEtcMountPoint = d.getVar("OVERLAYFS_ETC_MOUNT_POINT") | 40 | overlayEtcMountPoint = d.getVar("OVERLAYFS_ETC_MOUNT_POINT") |
| @@ -54,13 +55,15 @@ python create_overlayfs_etc_preinit() { | |||
| 54 | preinitPath = oe.path.join(d.getVar("IMAGE_ROOTFS"), d.getVar("base_sbindir"), "preinit") | 55 | preinitPath = oe.path.join(d.getVar("IMAGE_ROOTFS"), d.getVar("base_sbindir"), "preinit") |
| 55 | initBaseName = oe.path.join(d.getVar("base_sbindir"), "init") | 56 | initBaseName = oe.path.join(d.getVar("base_sbindir"), "init") |
| 56 | origInitNameSuffix = ".orig" | 57 | origInitNameSuffix = ".orig" |
| 58 | exposeLower = oe.types.boolean(d.getVar('OVERLAYFS_ETC_EXPOSE_LOWER')) | ||
| 57 | 59 | ||
| 58 | args = { | 60 | args = { |
| 59 | 'OVERLAYFS_ETC_MOUNT_POINT': overlayEtcMountPoint, | 61 | 'OVERLAYFS_ETC_MOUNT_POINT': overlayEtcMountPoint, |
| 60 | 'OVERLAYFS_ETC_MOUNT_OPTIONS': d.getVar('OVERLAYFS_ETC_MOUNT_OPTIONS'), | 62 | 'OVERLAYFS_ETC_MOUNT_OPTIONS': d.getVar('OVERLAYFS_ETC_MOUNT_OPTIONS'), |
| 61 | 'OVERLAYFS_ETC_FSTYPE': overlayEtcFsType, | 63 | 'OVERLAYFS_ETC_FSTYPE': overlayEtcFsType, |
| 62 | 'OVERLAYFS_ETC_DEVICE': overlayEtcDevice, | 64 | 'OVERLAYFS_ETC_DEVICE': overlayEtcDevice, |
| 63 | 'SBIN_INIT_NAME': initBaseName + origInitNameSuffix if useOrigInit else initBaseName | 65 | 'SBIN_INIT_NAME': initBaseName + origInitNameSuffix if useOrigInit else initBaseName, |
| 66 | 'OVERLAYFS_ETC_EXPOSE_LOWER': "true" if exposeLower else "false" | ||
| 64 | } | 67 | } |
| 65 | 68 | ||
| 66 | if useOrigInit: | 69 | if useOrigInit: |
