There was an error while loading. Please reload this page.
1 parent 5402551 commit d70adafCopy full SHA for d70adaf
1 file changed
crates/openshell-driver-vm/scripts/openshell-vm-sandbox-init.sh
@@ -247,6 +247,10 @@ setup_overlay_root() {
247
if [ "${OPENSHELL_VM_INIT_MODE:-sandbox}" = "image-prep" ]; then
248
prepare_guest_image_rootfs
249
sync
250
+ if ! umount /overlay; then
251
+ ts "FATAL: failed to unmount /overlay cleanly after image-prep; refusing to produce a dirty image-cache disk"
252
+ exit 1
253
+ fi
254
ts "image-prep complete"
255
exit 0
256
fi
@@ -256,7 +260,7 @@ setup_overlay_root() {
260
257
261
local lower_root="/lower"
258
262
if [ -b /dev/vdc ]; then
259
- mount -t ext4 -o ro /dev/vdc /image-cache
263
+ mount -t ext4 -o ro,noload /dev/vdc /image-cache
264
if [ -d /image-cache/image-rootfs ]; then
265
lower_root="/image-cache/image-rootfs"
266
ts "using prepared image rootfs lowerdir"
0 commit comments