summaryrefslogtreecommitdiff
path: root/export-noobs
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2017-07-12 12:33:57 +0100
committerSerge Schneider <serge@raspberrypi.org>2017-07-28 13:35:46 +0100
commitf2060a8ee2cfd5a7a6c26e96e48ac363e327af1a (patch)
tree4376b2fc5a6da80bc500ce0f0ee71f49e14e4499 /export-noobs
parent7149e20f2d919efdafc325602c373aee35b27023 (diff)
export-noobs: enable NOOBS config script here instead of stage2
Diffstat (limited to 'export-noobs')
-rwxr-xr-xexport-noobs/prerun.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/export-noobs/prerun.sh b/export-noobs/prerun.sh
index a3bb29f..61a26d5 100755
--- a/export-noobs/prerun.sh
+++ b/export-noobs/prerun.sh
@@ -31,6 +31,8 @@ mkdir -p ${NOOBS_DIR}
mount $ROOT_DEV ${STAGE_WORK_DIR}/rootfs
mount $BOOT_DEV ${STAGE_WORK_DIR}/rootfs/boot
+ln -sv "/lib/systemd/system/apply_noobs_os_config.service" "$ROOTFS_DIR/etc/systemd/system/multi-user.target.wants/apply_noobs_os_config.service"
+
bsdtar --format gnutar --use-compress-program pxz -C ${STAGE_WORK_DIR}/rootfs/boot -cpf ${NOOBS_DIR}/boot.tar.xz .
umount ${STAGE_WORK_DIR}/rootfs/boot
bsdtar --format gnutar --use-compress-program pxz -C ${STAGE_WORK_DIR}/rootfs --one-file-system -cpf ${NOOBS_DIR}/root.tar.xz .