summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorOleksandr Kravchuk <open.source@oleksandr-kravchuk.com>2019-07-20 17:57:50 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-22 21:36:02 +0100
commit7a2c56da85326043f0663c29535ac3fb555d96fe (patch)
tree2f695800918aff65f7cee71c4d5f777a040be00a /meta/recipes-core
parentdd8c7f2466d94fd8326b962e9bcfc4f42a35da38 (diff)
downloadopenembedded-core-7a2c56da85326043f0663c29535ac3fb555d96fe.tar.gz
udev-extraconf: do not mount swap partitions
Swap is a special filesystem that cannot be mounted, so do not try to, otherwise we will have service that tries and fails to mount it with the following error: systemd[1]: Mounting /run/media/nvme0n1p3... mount[1229]: mount: /run/media/nvme0n1p3: unknown filesystem type 'swap'. Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/udev/udev-extraconf/mount.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh
index 3ee67b1318..79eb0145c2 100644
--- a/meta/recipes-core/udev/udev-extraconf/mount.sh
+++ b/meta/recipes-core/udev/udev-extraconf/mount.sh
@@ -57,6 +57,8 @@ automount_systemd() {
vfat|fat)
MOUNT="$MOUNT -o umask=007,gid=`awk -F':' '/^disk/{print $3}' /etc/group`"
;;
+ swap)
+ return ;;
# TODO
*)
;;
@@ -98,6 +100,8 @@ automount() {
vfat|fat)
MOUNT="$MOUNT -o umask=007,gid=`awk -F':' '/^disk/{print $3}' /etc/group`"
;;
+ swap)
+ return ;;
# TODO
*)
;;