@Kyle - currently I'm making a snap for a daemon I cannot modify that runs in classic confinement and specifically requires a user to be added to the system. In the short term, it may also be necessary to add udev rules, systemctl configs, network manager dispatch scripts, etc. This may be abusing the very nice encapsulating aspect of snaps but that seems to be implied by classic confinement and I think is likely that people porting legacy software to snap distribution may face similar challenges.
> On 3/02/2017, at 5:46 AM, Kyle Fazzari <[email protected]> wrote: > > @Matt, I'd like to hear about your use-case for an uninstall hook. I > typically think of this as a "clean up behind yourself" hook, but since > when removing a snap the snap itself and all its writable areas are > blown away, I don't have a clear picture for how an uninstall hook would > be useful. > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1661126 > > Title: > Add One-shot Install/Uninstall Hook > > Status in snapd package in Ubuntu: > Confirmed > > Bug description: > It would be nice to have a hook that is executed once on install / > uninstall ( and possibly upgrade ) and that is guaranteed to run > before any daemons are launched. This would allow for configs, > databases, etc to be properly configured for daemons that require it. > I'm currently snapping a daemon that I'm unable to modify and would > benefit very much from this addition and I assume this would also > benefit people that need to snap daemons that are not rewritten > exclusively for the snap environment as well as 'classic mode' daemons > that need to setup other parts of the system, users, etc.. > > To manage notifications about this bug go to: > https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1661126/+subscriptions ________________________________ Wynright Corporation Disclaimer - The information transmitted, including any attachments, is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, copying, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you believe you have received this email in error (whether inadvertently addressed to you, or if forwarded to you by a recipient), please contact the sender and delete this material from your computer. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1661126 Title: Add One-shot Install/Uninstall Hook To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1661126/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
