diff options
| author | Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> | 2019-07-20 17:57:50 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-23 22:26:28 +0100 |
| commit | ff44852a7b37fbae548855f33e1c4c2bd22a2ed2 (patch) | |
| tree | 3d7cd6836ca584496fbf29a6e629d975d53d39ec | |
| parent | dda8f1bab2b6dca9ba5f82479194176f7b8e066d (diff) | |
| download | poky-ff44852a7b37fbae548855f33e1c4c2bd22a2ed2.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'.
(From OE-Core rev: 7a2c56da85326043f0663c29535ac3fb555d96fe)
Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/udev/udev-extraconf/mount.sh | 4 |
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() { | |||
| 57 | vfat|fat) | 57 | vfat|fat) |
| 58 | MOUNT="$MOUNT -o umask=007,gid=`awk -F':' '/^disk/{print $3}' /etc/group`" | 58 | MOUNT="$MOUNT -o umask=007,gid=`awk -F':' '/^disk/{print $3}' /etc/group`" |
| 59 | ;; | 59 | ;; |
| 60 | swap) | ||
| 61 | return ;; | ||
| 60 | # TODO | 62 | # TODO |
| 61 | *) | 63 | *) |
| 62 | ;; | 64 | ;; |
| @@ -98,6 +100,8 @@ automount() { | |||
| 98 | vfat|fat) | 100 | vfat|fat) |
| 99 | MOUNT="$MOUNT -o umask=007,gid=`awk -F':' '/^disk/{print $3}' /etc/group`" | 101 | MOUNT="$MOUNT -o umask=007,gid=`awk -F':' '/^disk/{print $3}' /etc/group`" |
| 100 | ;; | 102 | ;; |
| 103 | swap) | ||
| 104 | return ;; | ||
| 101 | # TODO | 105 | # TODO |
| 102 | *) | 106 | *) |
| 103 | ;; | 107 | ;; |
