Refracta Development, Scripts, etc.
Post a reply
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## apt-pinning in Refracta-8

Wed Oct 26, 2016 1:24 pm

In another thread, figlfdev wrote:

> refracta has a pin file? and it works even after the change in apt?
> thats really cool-- i havent tried a pin file since before that change, and i always thought two measures (pin file and server side) were better than one. its also nice to have a working example, since its difficult to find confidence-inspiring directions on how to pin anything these days.

There are three pin files in Refracta-8.
First one is from Devuan and prevents the installation of systemd:
etc/apt/preferences.d/avoid-systemd

Code:
  `Package: systemd-sysv
  Pin: release o=Debian
  Pin-Priority: -1`

Added for Refracta, this one prevents installation of any package with systemd in its name:
etc/apt/preferences.d/00nosystemd

Code:
  `Package: *systemd*
  Pin: origin ""
  Pin-Priority: -1`

Added by me, the last one prevents the backports repo from spamming your system with everything from backports when you update/upgrade. This is only relevant if you enable the backports repo. Unlike Debian, Devuan does not set backports to a lower priority than stable. From what I gather, this is a bug with an unknown cause. I don't know if it will be fixed with the upgrade to amprolla2. We shall see.
Note that you should not enable ascii or ceres for the purpose of installing packages from those repos into a stable system. I probably should have removed those, but I like to enable them just to check what package versions are available in testing/unstable. You'll need to remove those lines if you want to upgrade the system to testing or unstable.
etc/apt/preferences.d/00releases

Code:
  `Package: *
  Pin: release a=jessie-backports
  Pin-Priority: 200
  Package: *
  Pin: release n=ascii
  Pin-Priority: 90
  Package: *
  Pin: release n=ceres
  Pin-Priority: 50
  `

figlfdev

- figlfdev
- Posts: 116
- Joined: Tue May 31, 2016 6:23 pm

## Re: apt-pinning in Refracta-8

Thu Oct 27, 2016 7:37 am

nice. loosely related: a list of the output of "find / | grep temd" in fig os 2.3 (not yet released):

> /usr/share/man/man1/deb-systemd-helper.1p.gz
> /usr/share/man/man1/deb-systemd-invoke.1p.gz
> /usr/share/man/man8/systemd-udevd-control.socket.8.gz
> /usr/share/man/man8/systemd-udevd-kernel.socket.8.gz
> /usr/share/man/man8/systemd-udevd.8.gz
> /usr/share/man/man8/systemd-udevd.service.8.gz
> /usr/bin/deb-systemd-helper
> /usr/bin/deb-systemd-invoke
> /var/lib/systemd
> /var/lib/systemd/deb-systemd-helper-enabled
> /var/lib/systemd/deb-systemd-helper-enabled/acpid.path.dsh-also
> /var/lib/systemd/deb-systemd-helper-enabled/acpid.socket.dsh-also
> /var/lib/systemd/deb-systemd-helper-enabled/bluetooth.target.wants
> /var/lib/systemd/deb-systemd-helper-enabled/dm-event.socket.dsh-also
> /var/lib/systemd/deb-systemd-helper-enabled/local-fs.target.wants
> /var/lib/systemd/deb-systemd-helper-enabled/lvm2-lvmetad.socket.dsh-also
> /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants
> /var/lib/systemd/deb-systemd-helper-enabled/paths.target.wants
> /var/lib/systemd/deb-systemd-helper-enabled/paths.target.wants/acpid.path
> /var/lib/systemd/deb-systemd-helper-enabled/sockets.target.wants
> /var/lib/systemd/deb-systemd-helper-enabled/sockets.target.wants/acpid.socket
> /var/lib/systemd/deb-systemd-helper-enabled/sockets.target.wants/dm-event.socket
> /var/lib/systemd/deb-systemd-helper-enabled/ssh.socket.dsh-also
> /var/lib/systemd/deb-systemd-helper-enabled/sysinit.target.wants
> /var/lib/systemd/deb-systemd-helper-enabled/sysinit.target.wants/lvm2-lvmetad.socket
> / etc/apt/preferences.d/00nosystemd
> / etc/apt/preferences.d/avoid-systemd
> / etc/apt/sources.list.d/nosystemd.list
> /lib/systemd
> /lib/systemd/system-shutdown
> /lib/systemd/system-shutdown/mdadm.shutdown
> /lib/systemd/systemd-udevd

32 files-- that doesnt include redundant entries in /lib/live/mount/rootfs/filesystem.squashfs/
i may go ahead and experiment with that iso without removing more items. this is still based on i386-20160917_1030 so whatever the latest refracta needs, may not match. try running find / | grep temd in the latest refracta and either post it here, or run find / | grep temd | cat -n and tell me the number. or i could download the latest refracta and try it.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: apt-pinning in Refracta-8

Thu Oct 27, 2016 10:46 am

On this installation, 160 if I filter out /home/work. That's all udev stuff. The pinning does not prevent files with that name, just packages. Try 'dpkg -l |grep systemd' for packages. I see none here.
figlfdev

- figlfdev
- Posts: 116
- Joined: Tue May 31, 2016 6:23 pm

## Re: apt-pinning in Refracta-8

Fri Oct 28, 2016 12:16 am

> fsmithred wrote:That's all udev stuff

thats cool.

> The pinning does not prevent files with that name, just packages.

oh i know, ive been wanting to go after .service files for a while. have you found them necessary for anything you must use? im not suggesting removing them from refracta. not until ive been without them for a year in fig os anyway.

> Try 'dpkg -l |grep systemd' for packages. I see none here.

right, gotcha.
presumably switching to vdev would eventually make such files obsolete anyway, right?
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: apt-pinning in Refracta-8

Fri Oct 28, 2016 12:16 pm

Yes, the idea is for vdev to replace udev. It is possible now to use vdev instead of udev, but I'm not sure it's possible to uninstall udev. I can try that next week. It should work. The current packaging for vdev doesn't remove udev, but instead it pushes udev aside and reversibly disables it.
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.