snapcore / core-initrd

initrd implementation in ubuntu core
https://ubuntu.com/core/docs
GNU General Public License v3.0
9 stars 27 forks source link

bin/ubuntu-core-initramfs: Fix systemd package file paths #231

Closed juergh closed 6 months ago

juergh commented 6 months ago

In Noble, systemd package files moved from /lib to /usr/lib, account for that.

juergh commented 6 months ago

255.2-3ubuntu2 from proposed:

snapcraft-pi-kernel-on-arm64-for-arm64-431320 ../project# dpkg -l systemd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Architecture Description
+++-==============-==============-============-=================================
ii  systemd        255.2-3ubuntu2 arm64        system and service manager
snapcraft-pi-kernel-on-arm64-for-arm64-431320 ../project# dpkg -L systemd | grep /usr/lib/systemd/system | head
/usr/lib/systemd/system
/usr/lib/systemd/system/basic.target
/usr/lib/systemd/system/blockdev@.target
/usr/lib/systemd/system/bluetooth.target
/usr/lib/systemd/system/boot-complete.target
/usr/lib/systemd/system/console-getty.service
/usr/lib/systemd/system/container-getty@.service
/usr/lib/systemd/system/cryptsetup-pre.target
/usr/lib/systemd/system/cryptsetup.target
/usr/lib/systemd/system/debug-shell.service