DietPi icon indicating copy to clipboard operation
DietPi copied to clipboard

Raspberry Pi | Replace raspberrypi-sys-mods with own package

Open MichaIng opened this issue 3 years ago • 6 comments

The recent release of raspberrypi-sys-mods - 20220901 added raspi-config as dependency with a bunch of child dependencies and scripts, which are all not needed on DietPi. Many other things are and were for Raspberry Pi OS first boots, only a small number of GPIO/I2C/SPI related configs and scripts are reasonable on DietPi as well: https://github.com/RPi-Distro/raspberrypi-sys-mods

MichaIng avatar Sep 08 '22 20:09 MichaIng

Hi @MichaIng, noticed that too. Will the next DietPi-update revert those changes or do I have to deinstall those unneeded dependencies manually?

maartenlangeveld avatar Sep 09 '22 15:09 maartenlangeveld

Most likely the next update will pull a package from our server with the same name but only those parts needed on DietPi and a raised epoch version to assure it is not replaced when the one from RPi repo receives an update. The APT autoremoval will then remove the added (and possibly other) dependencies automatically.

MichaIng avatar Sep 10 '22 15:09 MichaIng

for time being, you could mark package on-hold

Hold a package: sudo apt-mark hold <package-name> Remove the hold: sudo apt-mark unhold <package-name> Show all packages on hold: sudo apt-mark showhold

Joulinar avatar Sep 11 '22 11:09 Joulinar

Hi @Joulinar, thanks. I'm afraid putting them on hold is a little too late, the packages have already installed.

maartenlangeveld avatar Sep 11 '22 16:09 maartenlangeveld

It even pulls the initramfs-tools as dependency 🤔. At least no actually initramfs is build to /boot 😄. However, aside of some additional packages/files, it shouldn't cause any issues. No need to go through downgrading and setting on hold IMO.

MichaIng avatar Sep 11 '22 16:09 MichaIng

I already understood that it does not do any harm, just happy the unneeded packages will be disabled with next DietPi update. Thanks!

maartenlangeveld avatar Sep 11 '22 17:09 maartenlangeveld

Done, can be tested with current beta 🙂.

MichaIng avatar Sep 17 '22 23:09 MichaIng