[pbs-devel] [PATCH] log: fallback to stderr if syslog not available

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Sep 12 11:38:54 CEST 2024


also got filed as https://bugzilla.proxmox.com/show_bug.cgi?id=5712, might be nice to fold that into the commit title when applied..

> Fiona Ebner <f.ebner at proxmox.com> hat am 12.09.2024 11:29 CEST geschrieben:  
> Am 10.09.24 um 15:03 schrieb Gabriel Goller:
> > Don't panic when the syslog is not available - which happens commonly in
> > containers and sbuild environments (chroot and unshare) - instead
> > fallback to stderr.
> > 
> > Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
> > ---
> > 
> > Note: this fixes `make sbuild` for pve-storage.
> > Disclaimer: haven't quite figured out why tbh, I don't see where the
> > verify_api function calls proxmox-backup-api or proxmox-backup-proxy. 
> > 
> 
> It's also used by libpve-rs and I can confirm "injecting" (done using
> sbuild options --starting-build-commands and --pre-build-commands) a
> package of libpve-rs-perl that incorporates your proxmox-log change
> makes building pve-storage and pve-container work again :)

just for the record or to save you some trouble the next time - injecting a changed package into the build env can simply be done via --extra-package (either pointed at the .deb file, or at a dir containing .deb files to be injected). --extra-repository also works, but requires exposing them as repository..
 
> Tested-by: Fiona Ebner <f.ebner at proxmox.com>




More information about the pbs-devel mailing list