mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
Delete dead code in build_image relating to ESP_LOOP_DEV
BUG=None TEST=build_image Change-Id: I10aba40538e9c6aeaf803ffc50bb029dcf6d4be5 Reviewed-on: http://gerrit.chromium.org/gerrit/5009 Reviewed-by: Chris Sosa <sosa@chromium.org> Tested-by: Richard Barnette <jrbarnette@chromium.org>
This commit is contained in:
parent
5ee38905e5
commit
bb783007ce
10
build_image
10
build_image
@ -286,7 +286,6 @@ DEVKEYSDIR="/usr/share/vboot/devkeys"
|
||||
|
||||
LOOP_DEV=
|
||||
STATEFUL_LOOP_DEV=
|
||||
ESP_LOOP_DEV=
|
||||
|
||||
# ${DEV_IMAGE_ROOT} specifies the location of where developer packages will
|
||||
# be installed on the stateful dir. On a Chromium OS system, this will
|
||||
@ -331,10 +330,6 @@ cleanup_stateful_fs_loop() {
|
||||
sudo umount -d "${STATEFUL_FS_DIR}"
|
||||
}
|
||||
|
||||
cleanup_esp_loop() {
|
||||
sudo umount -d "${ESP_FS_DIR}"
|
||||
}
|
||||
|
||||
cleanup() {
|
||||
# Disable die on error.
|
||||
set +e
|
||||
@ -349,11 +344,6 @@ cleanup() {
|
||||
LOOP_DEV=
|
||||
fi
|
||||
|
||||
if [[ -n "${ESP_LOOP_DEV}" ]]; then
|
||||
cleanup_esp_loop
|
||||
ESP_LOOP_DEV=
|
||||
fi
|
||||
|
||||
# Turn die on error back on.
|
||||
set -e
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user