From b6fa1b32f3a2eefdaa09fd3f65e0e4223b26525e Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Wed, 15 Aug 2012 12:38:44 -0700 Subject: [PATCH] recovery: do not create empty /var on stateful partition The /var directory on the stateful partition is no longer used in the recovery image, so there is no reason to mkdir it here. BUG=chromium-os:32774 TEST=parrot and lumpy recovery image build, manual testing Change-Id: I9ad936943e88cd2c8cb96a6f715f778c5c65d701 Signed-off-by: Kees Cook Reviewed-on: https://gerrit.chromium.org/gerrit/30488 Reviewed-by: Richard Barnette --- mod_image_for_recovery.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/mod_image_for_recovery.sh b/mod_image_for_recovery.sh index 10df9a95d7..99424f9466 100755 --- a/mod_image_for_recovery.sh +++ b/mod_image_for_recovery.sh @@ -322,7 +322,6 @@ maybe_resize_stateful() { set +e sudo mount -o loop $small_stateful $new_stateful_mnt sudo cp "$INSTALL_VBLOCK" "$new_stateful_mnt/vmlinuz_hd.vblock" - sudo mkdir "$new_stateful_mnt/var" sudo umount "$new_stateful_mnt" rmdir "$new_stateful_mnt" switch_to_strict_mode