Skip to content

Commit

Permalink
use unshare rather then chroot to enable hirte-agent.service
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed May 3, 2023
1 parent e71b6d5 commit 8a6f03e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ hirteSetup() {
NodeName=qm.${hostname}
EOF
fi
chroot ${rootfs} systemctl enable hirte-agent 2> /dev/null
unshare --mount-proc -R /usr/lib/qm/rootfs -m systemctl enable hirte-agent.service
}

install() {
Expand Down

0 comments on commit 8a6f03e

Please sign in to comment.