From 45a730b3b5329fb2538b1ce320ad64b5470dd3d3 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Fri, 24 May 2013 11:01:50 +1200 Subject: [PATCH] Update sudoers rules for 1PB resizing. Change-Id: Ib3c346a2ecf5fc2a2198dc01cb8572806c8b635e --- sudoers.d/img-build-sudoers | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sudoers.d/img-build-sudoers b/sudoers.d/img-build-sudoers index a6d94314..281f7c2e 100644 --- a/sudoers.d/img-build-sudoers +++ b/sudoers.d/img-build-sudoers @@ -37,8 +37,8 @@ ALL ALL=(root) NOPASSWD: /bin/umount -f /tmp/*/mnt/dev ALL ALL=(root) NOPASSWD: /bin/umount -f /tmp/*/mnt/proc ALL ALL=(root) NOPASSWD: /bin/umount -f /tmp/*/mnt/sys ALL ALL=(root) NOPASSWD: /bin/umount -f /tmp/*/mnt/tmp/in_target.d -ALL ALL=(root) NOPASSWD: /sbin/mkfs -t ext4 -L cloudimg-rootfs /dev/loop* -ALL ALL=(root) NOPASSWD: /sbin/mkfs -i 4096 -t ext4 -L cloudimg-rootfs /dev/loop* +ALL ALL=(root) NOPASSWD: /sbin/mkfs -E resize=274877906944 -t ext4 -L cloudimg-rootfs /dev/loop* +ALL ALL=(root) NOPASSWD: /sbin/mkfs -i 4096 -E resize=274877906944 -t ext4 -L cloudimg-rootfs /dev/loop* ALL ALL=(root) NOPASSWD: /sbin/modprobe nbd max_part=16 ALL ALL=(root) NOPASSWD: /sbin/sfdisk /dev/nbd* ALL ALL=(root) NOPASSWD: /sbin/sfdisk /dev/loop*