diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-02-04 00:58:55 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-04-24 16:43:38 +0200 |
commit | 943c0feb1967e057b2ae518246859b50c58433b0 (patch) | |
tree | a0719b1738239aac59d61a4b9fa6236a645c0f0e | |
parent | 963e7432c089c6067ecaade146f1a243370100e9 (diff) | |
download | mkinitcpio-943c0feb1967e057b2ae518246859b50c58433b0.tar.gz mkinitcpio-943c0feb1967e057b2ae518246859b50c58433b0.tar.xz |
shutdown: use umount --recursive
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | shutdown | 16 |
2 files changed, 2 insertions, 16 deletions
@@ -8,7 +8,7 @@ license=('GPL') groups=('base') conflicts=('mkinitcpio') provides=("mkinitcpio=$pkgver") -depends=('mkinitcpio-busybox>=1.19.4-2' 'kmod' 'util-linux>=2.21' 'libarchive' 'coreutils' +depends=('mkinitcpio-busybox>=1.19.4-2' 'kmod' 'util-linux>=2.23' 'libarchive' 'coreutils' 'awk' 'bash' 'findutils' 'grep' 'filesystem>=2011.10-1' 'systemd' 'gzip') makedepends=('asciidoc' 'git' 'sed') optdepends=('xz: Use lzma or xz compression for the initramfs image' @@ -79,21 +79,7 @@ cd /sys/class/block printf '%s\n' "Unmounting all devices." -# unmount everything in /oldroot -findmnt -Rruno TARGET /oldroot | awk ' -BEGIN { i = 0 } -{ - i++ - mounts[i] = $0 -} -END { - for (j = i; j > 0; j--) { - print mounts[j] - } -} -' | while read -r mount; do - umount "$mount" -done +umount --recursive /oldroot printf '%s\n' 'Detaching loop devices.' |