aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-07-17 11:59:27 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-17 11:59:27 +0200
commit1b9a0c8ea09161646872b20f9bd09ce906e8a9fd (patch)
tree83682d7b2245d06894a0e41adde07a631bfc9402
parent8a6bd26c6ecc6e3cd7a5ca444e814eaefede7226 (diff)
downloadalpine-conf-1b9a0c8ea09161646872b20f9bd09ce906e8a9fd.tar.bz2
alpine-conf-1b9a0c8ea09161646872b20f9bd09ce906e8a9fd.tar.xz
setup-disk: use ERE for sed regexp
the use of \+ is a GNU BRE extension that is not supported in musl.
-rw-r--r--setup-disk.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 011b55f..c20c619 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -62,7 +62,7 @@ enumerate_fstab() {
[ -z "$mnt" ] && return
local escaped_mnt=$(echo $mnt | sed -e 's:/*$::' -e 's:/:\\/:g')
awk "\$2 ~ /^$escaped_mnt(\/|\$)/ {print \$0}" /proc/mounts | \
- sed "s:$mnt:/:g; s: :\t:g" | sed 's:/\+:/:g' | \
+ sed "s:$mnt:/:g; s: :\t:g" | sed -E 's:/+:/:g' | \
while read fs_spec fs_file fs_vfstype fs_mntops fs_freq fs_passno; do
echo -e "$(uuid_or_device $fs_spec)\t${fs_file}\t${fs_vfstype}\t${fs_mntops} ${fs_freq} ${fs_passno}"
done