Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression in Winbind packaging breaks APT [bionic] #57

Open
noelmcloughlin opened this issue Mar 3, 2019 · 1 comment
Open

Regression in Winbind packaging breaks APT [bionic] #57

noelmcloughlin opened this issue Mar 3, 2019 · 1 comment
Assignees

Comments

@noelmcloughlin
Copy link
Member

Tracking https://bugs.launchpad.net/ubuntu-packaging-guide/+bug/1818431

@noelmcloughlin
Copy link
Member Author

noelmcloughlin commented Jul 22, 2019

How about this fix which stops Debian interfering with systemd.

    ### stop debian interference with services (https://wiki.debian.org/chroot)
    if [ -f "/usr/bin/apt-get" ]; then
        cat > /usr/sbin/policy-rc.d <<EOF
#!/bin/sh
exit 101
EOF

From official documentation @ https://wiki.debian.org/chroot :

Create a /usr/sbin/policy-rc.d file IN THE CHROOT so that dpkg won't start daemons unless desired. This example prevents all daemons from being started in the chroot.

chroot /srv/chroot/stretch
cat > ./usr/sbin/policy-rc.d <<EOF
#!/bin/sh
exit 101
EOF
chmod a+x ./usr/sbin/policy-rc.d

@noelmcloughlin noelmcloughlin self-assigned this Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant