diff --git a/modify.sh b/modify.sh index 78c1def..7986f5c 100644 --- a/modify.sh +++ b/modify.sh @@ -83,9 +83,12 @@ enable_rw_mount "$LOOP_DEV"p1 mount -o rw "$LOOP_DEV"p1 "$MOUNT_DIR" mkdir -p "$MOUNT_DIR/usr/share/packeddata" cp -rvf "./out/." "$MOUNT_DIR/usr/share/packeddata" -mkdir -p "$MOUNT_DIR/usr/bin" -echo "bash" > "$MOUNT_DIR/usr/sbin/factory_install.sh" cp "inshim.sh" "$MOUNT_DIR/usr/bin/inshim.sh" +umount "$MOUNT_DIR" +enable_rw_mount "$LOOP_DEV"p3 +mount "$LOOP_DEV"p3 "$MOUNT_DIR" +echo "bash" > "$MOUNT_DIR/usr/sbin/factory_install.sh" + umount "$MOUNT_DIR" sync sync