heads/initrd
Matt DeVillier c2c45dae0e
Encapsulate changes to working directory inside subshells
For the handful of operations which need to be done with /boot
as the pwd, encapsulate them in subshells to ensure the pwd
doesn't unexpectedly change for other operations, as functions
which need to mount/unmount /boot may fail if the pwd isn't root.

Also, set the pwd to root at the start of detect_boot_device as an
added safety measure.

Test: run oem-factory-reset function, ensure it doesn't fail to
detect boot device due to incorrect working directory.

Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
2020-07-13 17:30:00 -05:00
..
.gnupg instruct gpg to use gpg-agent. 2019-01-29 11:16:13 -05:00
bin Encapsulate changes to working directory inside subshells 2020-07-13 17:30:00 -05:00
etc Encapsulate changes to working directory inside subshells 2020-07-13 17:30:00 -05:00
sbin "$@" does not expand correctly in test expressions, use "$*" instead (issue #181) 2017-04-11 06:31:25 -04:00
.ash_history GPG2 required changes for key and trustdb generation and inclusion in rom 2019-01-29 11:18:11 -05:00
init gui-init: Fix RAM and firmware version strings 2020-07-01 13:42:10 -05:00
mount-boot extract and verify gpg signature on the boot script 2016-08-06 17:13:22 -04:00