mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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'. (From OE-Core rev: 7a2c56da85326043f0663c29535ac3fb555d96fe) Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
dda8f1bab2
commit
ff44852a7b
@@ -57,6 +57,8 @@ automount_systemd() {
|
|||||||
vfat|fat)
|
vfat|fat)
|
||||||
MOUNT="$MOUNT -o umask=007,gid=`awk -F':' '/^disk/{print $3}' /etc/group`"
|
MOUNT="$MOUNT -o umask=007,gid=`awk -F':' '/^disk/{print $3}' /etc/group`"
|
||||||
;;
|
;;
|
||||||
|
swap)
|
||||||
|
return ;;
|
||||||
# TODO
|
# TODO
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
@@ -98,6 +100,8 @@ automount() {
|
|||||||
vfat|fat)
|
vfat|fat)
|
||||||
MOUNT="$MOUNT -o umask=007,gid=`awk -F':' '/^disk/{print $3}' /etc/group`"
|
MOUNT="$MOUNT -o umask=007,gid=`awk -F':' '/^disk/{print $3}' /etc/group`"
|
||||||
;;
|
;;
|
||||||
|
swap)
|
||||||
|
return ;;
|
||||||
# TODO
|
# TODO
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user