moving the generator aside and replacing it with the following script:
cd /lib/systemd mv system-generators/snapd-generator . cat > system-generators/snapd-generator <<EOF #!/bin/sh
exec > /tmp/lp.2039268 2>&1 cat /proc/self/mountinfo
exec strace -ff -s256 -o /tmp/trace-2039268 /lib/systemd/snapd-generator "\$@" EOF chmod a+x system-generators/snapd-generator
It looks like this unit isn't actually generated by the snapd generator in the snapd deb, but maybe by the copy in the snapd snap? which could explain why /proc/self/mountinfo is different, but I don't understand how or why this would be executed.
moving the generator aside and replacing it with the following script:
cd /lib/systemd generators/ snapd-generator . generators/ snapd-generator <<EOF
mv system-
cat > system-
#!/bin/sh
exec > /tmp/lp.2039268 2>&1 mountinfo
cat /proc/self/
exec strace -ff -s256 -o /tmp/trace-2039268 /lib/systemd/ snapd-generator "\$@" generators/ snapd-generator
EOF
chmod a+x system-
It looks like this unit isn't actually generated by the snapd generator in the snapd deb, but maybe by the copy in the snapd snap? which could explain why /proc/self/ mountinfo is different, but I don't understand how or why this would be executed.