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
|
2020-09-02 22:02:54 +00:00
|
|
|
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
|