diff options
| author | Ricardo Salveti <ricardo@foundries.io> | 2025-10-17 15:51:12 -0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-27 11:37:43 +0000 |
| commit | 5dd5fd0d565b2bc59b448ea7e1ce65d0df447a1f (patch) | |
| tree | 1cffabecceefb7e3129cb4023274a16668f153e7 | |
| parent | 8de797828444a169003adb205b339b8964066e1f (diff) | |
| download | poky-5dd5fd0d565b2bc59b448ea7e1ce65d0df447a1f.tar.gz | |
initramfs-framework: drop redundant /var/lock directory creation
base-files already provides /var/lock as a symbolic link to /run/lock, and
since /run is created and mounted as tmpfs during init, there is no need
to explicitly create /var/lock within initramfs.
This avoids the following spurious error during boot:
mkdir: can't create directory '/var/lock': No such file or directory
(From OE-Core rev: 24629a0e81291900edf0967bb218ba51dfa90ce9)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rwxr-xr-x | meta/recipes-core/initrdscripts/initramfs-framework/init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init index 5dd252219a..fe6e3cbf07 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/init +++ b/meta/recipes-core/initrdscripts/initramfs-framework/init | |||
| @@ -80,8 +80,8 @@ EFI_DIR=/sys/firmware/efi # place to store device firmware information | |||
| 80 | # make mount stop complaining about missing /etc/fstab | 80 | # make mount stop complaining about missing /etc/fstab |
| 81 | touch /etc/fstab | 81 | touch /etc/fstab |
| 82 | 82 | ||
| 83 | # initialize /proc, /sys, /run/lock and /var/lock | 83 | # initialize /proc, /sys and /run/lock |
| 84 | mkdir -p /proc /sys /run /var/lock | 84 | mkdir -p /proc /sys /run |
| 85 | mount -t proc proc /proc | 85 | mount -t proc proc /proc |
| 86 | mount -t sysfs sysfs /sys | 86 | mount -t sysfs sysfs /sys |
| 87 | mount -t tmpfs tmpfs /run | 87 | mount -t tmpfs tmpfs /run |
