mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 06:56:58 +02:00
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 <keescook@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/30488 Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
This commit is contained in:
parent
2cf2102f99
commit
b6fa1b32f3
@ -322,7 +322,6 @@ maybe_resize_stateful() {
|
|||||||
set +e
|
set +e
|
||||||
sudo mount -o loop $small_stateful $new_stateful_mnt
|
sudo mount -o loop $small_stateful $new_stateful_mnt
|
||||||
sudo cp "$INSTALL_VBLOCK" "$new_stateful_mnt/vmlinuz_hd.vblock"
|
sudo cp "$INSTALL_VBLOCK" "$new_stateful_mnt/vmlinuz_hd.vblock"
|
||||||
sudo mkdir "$new_stateful_mnt/var"
|
|
||||||
sudo umount "$new_stateful_mnt"
|
sudo umount "$new_stateful_mnt"
|
||||||
rmdir "$new_stateful_mnt"
|
rmdir "$new_stateful_mnt"
|
||||||
switch_to_strict_mode
|
switch_to_strict_mode
|
||||||
|
Loading…
Reference in New Issue
Block a user