Commit 4d1fa69a authored by Dermot Bradley's avatar Dermot Bradley Committed by alice
Browse files

main/util-linux: split mount and umount into subpackages

Busybox mount does not support some functionality such as bind mounts
so split mount and umount into subpackages so that other packages
that only require mount and/or umount do not need to install
util-linux-misc.

Add util-linux-misc.post-upgrade script to warn of the move.
parent 4b6007f3
Pipeline #125977 passed with stages
in 1 minute and 35 seconds
......@@ -3,7 +3,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=util-linux
pkgver=2.38
pkgrel=1
pkgrel=2
pkgdesc="Random collection of Linux utilities"
url="https://git.kernel.org/cgit/utils/util-linux/util-linux.git"
arch="all"
......@@ -42,9 +42,11 @@ subpackages="
losetup:_mv_bin
lsblk:_mv_bin
mcookie:_mv_bin
mount:_mv_bin
partx:_mv_bin
setpriv:_mv_bin
sfdisk:_mv_bin
umount:_mv_bin
uuidgen:_mv_bin
wipefs:_mv_bin
"
......@@ -253,6 +255,7 @@ _login_doc() {
misc() {
pkgdesc="Misc binaries for $pkgname"
depends=
install="$pkgname-misc.post-upgrade"
install_if="$pkgname=$pkgver-r$pkgrel"
local dir; for dir in usr/bin usr/sbin bin sbin; do
......
#!/bin/sh
ver_old=$2
if [ "$(apk version -t "$ver_old" '2.38-r2')" = '<' ]; then
cat >&2 <<-EOF
*
* The mount and umount programs have been moved from util-linux-misc to
* individual subpackages. If you use them, run: "apk add mount umount".
*
EOF
fi
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment