diff options
author | Claudius Heine <ch@denx.de> | 2022-03-10 14:13:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-11 06:56:02 +0000 |
commit | 3653b9d37afaee287016df062a975cf9fa696e6b (patch) | |
tree | 8abb81a6fad73ecb233fbe57c7dbe259f0880972 /meta/files/overlayfs-etc-preinit.sh.in | |
parent | f69a9d7b39915422fed3915021b0682c84954cc0 (diff) | |
download | poky-3653b9d37afaee287016df062a975cf9fa696e6b.tar.gz |
files: overlayfs-etc: wrap long lines of preinit file
Make it easier to see what is happening by wrapping the overly long
lines in the preinit file for the overlayfs-etc.
(From OE-Core rev: 2e116bbc1afbc571b99f2605839e3c90839471be)
Signed-off-by: Claudius Heine <ch@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/files/overlayfs-etc-preinit.sh.in')
-rw-r--r-- | meta/files/overlayfs-etc-preinit.sh.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/meta/files/overlayfs-etc-preinit.sh.in b/meta/files/overlayfs-etc-preinit.sh.in index 2ebb6c9224..e5f5001a05 100644 --- a/meta/files/overlayfs-etc-preinit.sh.in +++ b/meta/files/overlayfs-etc-preinit.sh.in | |||
@@ -16,11 +16,18 @@ mount -t sysfs sysfs /sys | |||
16 | [ -z "$CONSOLE" ] && CONSOLE="/dev/console" | 16 | [ -z "$CONSOLE" ] && CONSOLE="/dev/console" |
17 | 17 | ||
18 | mkdir -p {OVERLAYFS_ETC_MOUNT_POINT} | 18 | mkdir -p {OVERLAYFS_ETC_MOUNT_POINT} |
19 | if mount -n -t {OVERLAYFS_ETC_FSTYPE} -o {OVERLAYFS_ETC_MOUNT_OPTIONS} {OVERLAYFS_ETC_DEVICE} {OVERLAYFS_ETC_MOUNT_POINT} | 19 | if mount -n -t {OVERLAYFS_ETC_FSTYPE} \ |
20 | -o {OVERLAYFS_ETC_MOUNT_OPTIONS} \ | ||
21 | {OVERLAYFS_ETC_DEVICE} {OVERLAYFS_ETC_MOUNT_POINT} | ||
20 | then | 22 | then |
21 | mkdir -p {OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/upper | 23 | mkdir -p {OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/upper |
22 | mkdir -p {OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/work | 24 | mkdir -p {OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/work |
23 | mount -n -t overlay -o upperdir={OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/upper,lowerdir=/etc,workdir={OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/work {OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/upper /etc || echo "PREINIT: Mounting etc-overlay failed!" | 25 | mount -n -t overlay \ |
26 | -o upperdir={OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/upper \ | ||
27 | -o lowerdir=/etc \ | ||
28 | -o workdir={OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/work \ | ||
29 | {OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/upper /etc || \ | ||
30 | echo "PREINIT: Mounting etc-overlay failed!" | ||
24 | else | 31 | else |
25 | echo "PREINIT: Mounting </data> failed!" | 32 | echo "PREINIT: Mounting </data> failed!" |
26 | fi | 33 | fi |