summaryrefslogtreecommitdiff
path: root/fastboot/device/variables.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2018-11-06 10:32:53 -0800
committerTom Cherry <tomcherry@google.com>2018-11-09 14:58:46 -0800
commit866c08c0acea7ceba50086a02d36b27e815aa6d0 (patch)
tree9320322eb3bba9e68552256ee82b2a110834d473 /fastboot/device/variables.cpp
parent223114008c47721512d877eefe5d7a903a7081ea (diff)
Reland: "init: chroot from recovery to /first_stage_ramdisk"
When using the recovery image as a trampoline to boot the system, first chroot from the recovery image to /first_stage_ramdisk, to minimize differences between these two boot paths. Primary motivation is due to the fact that the basename of each mount point is used by device-manager to name its nodes, and the previous code that created used /system_recovery_mount as the mount point for system.img broke AVB. Instead of hacking around that issue, this change unified mounting for the recovery trampoline and true first stage ramdisk paths. Change when relanding: the original change skipped the move mount from /first_stage_ramdisk to / and only did a chroot instead. This was a mistake that resulted in the subsequent move mount of /system to / to mount over the '/' directory instead of moving that mount. This change uses a bind mount of /first_stage_ramdisk to itself instead of skipping the first move mount. Bug: 114062208 Test: AVB works with blueline_mainline Change-Id: I65207edfe98531892da2eafcbff19b438c9c64fe
Diffstat (limited to 'fastboot/device/variables.cpp')
0 files changed, 0 insertions, 0 deletions