1. mv /home/happy /data/
2. Execute the script after reboot
[Unit]
Description=My script
[Service]
ExecStart=/usr/bin/ln -sv /data/happy/ /home/
[Install]
WantedBy=sysinit.target.wants
Reference:
1. [Archlinux] Execute the script at the booting time
0 意見:
張貼留言