From 1651cfb53a5bae80a4677f0a3365369f9b04e6a1 Mon Sep 17 00:00:00 2001 From: Matthew Farrellee Date: Wed, 17 Jul 2013 17:12:07 -0400 Subject: [PATCH] Allow 'sudo kpartx -d' used in EACTION for Fedora Change-Id: I0c651091d9623d7607bb59bd05ffec20fd78633c --- sudoers.d/img-build-sudoers | 1 + 1 file changed, 1 insertion(+) diff --git a/sudoers.d/img-build-sudoers b/sudoers.d/img-build-sudoers index 2bafc25ee..6264aa7a1 100644 --- a/sudoers.d/img-build-sudoers +++ b/sudoers.d/img-build-sudoers @@ -56,6 +56,7 @@ ALL ALL=(root) NOPASSWD: /sbin/losetup --show -f /tmp/*/*.raw ALL ALL=(root) NOPASSWD: /sbin/losetup -d /dev/loop* ALL ALL=(root) NOPASSWD: /sbin/partprobe /dev/loop* ALL ALL=(root) NOPASSWD: /sbin/kpartx -avr /tmp/*/*.raw +ALL ALL=(root) NOPASSWD: /sbin/kpartx -d /tmp/*/*.raw ALL ALL=(root) NOPASSWD: /usr/bin/du --block-size=* -x -s /tmp/*/built ALL ALL=(root) NOPASSWD: /bin/mount -t tmpfs tmpfs /tmp/image.* ALL ALL=(root) NOPASSWD: /bin/umount -f /tmp/image.*