diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-28 13:27:55 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-28 12:29:00 +0000 |
commit | b56febe89a80a38ad637af40520f00a177a1f574 (patch) | |
tree | 441d2775e456132911875219b311b02b83d746b0 /main/busybox/0001-fsck-resolve-LABEL-.-UUID-.-spec-to-device.patch | |
parent | c6dffcbe9c602ad6ca854661e5a2dbfbf72049ed (diff) | |
download | aports-b56febe89a80a38ad637af40520f00a177a1f574.tar.bz2 aports-b56febe89a80a38ad637af40520f00a177a1f574.tar.xz |
main/busybox: fix fsck to resolve UUID/LABEL specs in fstab
Diffstat (limited to 'main/busybox/0001-fsck-resolve-LABEL-.-UUID-.-spec-to-device.patch')
-rw-r--r-- | main/busybox/0001-fsck-resolve-LABEL-.-UUID-.-spec-to-device.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/main/busybox/0001-fsck-resolve-LABEL-.-UUID-.-spec-to-device.patch b/main/busybox/0001-fsck-resolve-LABEL-.-UUID-.-spec-to-device.patch new file mode 100644 index 0000000000..323e079021 --- /dev/null +++ b/main/busybox/0001-fsck-resolve-LABEL-.-UUID-.-spec-to-device.patch @@ -0,0 +1,32 @@ +From 549b5fa1384bb29c3ea92486539dccd9a7d71b83 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Tue, 28 Nov 2017 13:23:17 +0100 +Subject: [PATCH] fsck: resolve LABEL=.../UUID=... spec to device + +--- + e2fsprogs/fsck.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c +index eb53002b1..2adf0cf07 100644 +--- a/e2fsprogs/fsck.c ++++ b/e2fsprogs/fsck.c +@@ -60,6 +60,7 @@ + //usage: "\n -t TYPE List of filesystem types to check" + + #include "libbb.h" ++#include "volume_id.h" + #include "common_bufsiz.h" + + /* "progress indicator" code is somewhat buggy and ext[23] specific. +@@ -976,6 +977,7 @@ int fsck_main(int argc UNUSED_PARAM, char **argv) + // "/path", "UUID=xxx" or "LABEL=xxx" into block device name + // ("UUID=xxx"/"LABEL=xxx" can probably shifted to fsck.auto duties) + devices = xrealloc_vector(devices, 2, num_devices); ++ resolve_mount_spec(&arg); + devices[num_devices++] = arg; + continue; + } +-- +2.15.0 + |