burrow-pi-img/stage2/07-enable-overlayfs/00-run.sh

13 lines
540 B
Bash
Raw Permalink Normal View History

2020-09-01 17:37:41 +00:00
#!/bin/bash -e
install -d "${ROOTFS_DIR}/etc/systemd/system/enable-overlayfs.target.wants"
install -m 644 files/enable-overlayfs.service "${ROOTFS_DIR}/etc/systemd/system/"
install -m 644 files/enable-overlayfs.target "${ROOTFS_DIR}/etc/systemd/system/"
install -m 755 files/enable_overlayfs.sh "${ROOTFS_DIR}/usr/bin/"
on_chroot << EOF
ln -sf /etc/systemd/system/enable-overlayfs.service /etc/systemd/system/enable-overlayfs.target.wants/enable-overlayfs.service
2020-09-01 17:37:41 +00:00
systemctl daemon-reload
systemctl set-default enable-overlayfs.target
EOF