ShorTie | in a preinst/postinst is there a arch variable availible already ?? | 20:14 |
---|---|---|
fsmithred | ShorTie, I don't think so, but none of my packages are arch-specific. This page shows supported environment variables for make, but not for the pre/post scripts. https://www.debian.org/doc/debian-policy/ch-source.html About halfway down the page. | 20:38 |
ShorTie | ok, Thankz | 20:40 |
ShorTie | this 3 hour test cycle is kickin my ass, lol. | 20:40 |
ShorTie | or i'm doing it wrong, hmmmm.... | 20:41 |
ShorTie | maybe i need/could use like a smoothwall-linux-amd64.postinst smoothwall-linux-arm64.postinst script in stead of a all in one .. :/~ | 20:45 |
ShorTie | that how they do it i guess.... | 20:45 |
ShorTie | i don't think i need any thing for a preinst-amd64, as i'm installing a specific kernel | 20:47 |
ShorTie | so i don't need any backup's other then grub.conf | 20:48 |
ShorTie | hmmm, that means a preinst really | 20:48 |
ShorTie | Thankz Guys | 20:49 |
fsmithred | postinst is different for the different arch? | 20:55 |
ShorTie | yes sir | 20:57 |
ShorTie | arm64 has not grub at least | 20:58 |
fsmithred | if [ -e /var/lib/dpkg/info/grub-common.list ] ; then what, update-grub? | 21:40 |
fsmithred | else do arm stuff | 21:40 |
fsmithred | that won't work if they have lilo or extlinux | 21:40 |
yeti | ifdef it @deb build time? | 21:41 |
yeti | you know what you are compiling a deb for, so some ifs in the makefile can prepare it... maybe smuggling a var into postinstall scrips? | 21:42 |
yeti | what->what arch | 21:43 |
ShorTie | i i'm smuggling in the version | 21:58 |
ShorTie | but breaking them up into amd64/arm64 is really more the Debian way I think | 22:00 |
fsmithred | You're right. Example: linux-headers-4.19.0-8-amd64.postinst | 22:06 |
fsmithred | no, that's not right | 22:06 |
fsmithred | that's just part of the package name | 22:06 |
fsmithred | I don't see any others with the arch in the postinst file name. | 22:06 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!