Re: [arch-dev-public] Hooks!
On jeu., 2016-04-28 at 23:14 +0200, Christian Hesse wrote: > Allan McRaeon Sat, 2016/04/23 17:03: > > According to the news announcement, today is the day we can start using > > hooks! (as long as you live in the future like me - those of you in the > > past will need to catch up a day). > > > > I have started a wiki page to discuss which hooks to add [1]. > > [...] > > > > [1] https://wiki.archlinux.org/index.php/DeveloperWiki:Pacman_Hooks > > I can not edit the wiki page, so discussing here. > > How about a hook that rebuilds kernel initramfs images? Something like: > > This is clearly better that the current situation, so +0.5! But as we are on the topic, could we consider directly moving to kernel-install to manage programs used to make the system able to boot (initramfs, bootladers) ? Initramfs rebuild logic is in a script in /usr/lib/kernel/install.d. Like grub or others bootloaders. I have a POC[1] here and I'm using it with good feedback since months. [1] https://git.archlinux.org/users/seblu/kernel-install-poc.git/ -- Sébastien "Seblu" Luttringer https://seblu.net | Twitter: @seblu42 GPG: 0x2072D77A signature.asc Description: This is a digitally signed message part
Re: [arch-dev-public] [PATCH 1/1] move initramfs generation from install script to pacman hook
On mer., 2016-05-18 at 13:55 +0200, Christian Hesse wrote: > From: Christian Hesse> > # add vmlinux > install -D -m644 vmlinux > "${pkgdir}/usr/lib/modules/${_kernver}/build/vmlinux" > + > + # install pacman hook > + install -D -m644 "${srcdir}/linux-initramfs.hook" > "${pkgdir}/usr/share/libalpm/hooks/linux-initramfs.hook" > } > Hello, I didn't pay much attention to this, but except dkms, hooks are not ordered. Could we use a prefix convention to order our hooks? It's usefull to build modules before building initramfs and eventually run grub update at the end. Something like: 50-XXX.hook - order doesn't matter 70-dkms.hook - ootm modules build 80-initramfs.hook - initramfs inclusion. Cheers, -- Sébastien "Seblu" Luttringer https://seblu.net | Twitter: @seblu42 GPG: 0x2072D77A signature.asc Description: This is a digitally signed message part
Re: [arch-dev-public] [PATCH 1/1] move initramfs generation from install script to pacman hook
[2016-05-18 08:42:49 -1000] Gaetan Bisson: > [2016-05-18 13:55:40 +0200] Christian Hesse: > > From: Christian Hesse> > > > Signed-off-by: Christian Hesse > > --- > > PKGBUILD | 5 + > > linux-initramfs.hook | 11 +++ > > linux.install| 4 > > 3 files changed, 16 insertions(+), 4 deletions(-) > > create mode 100644 linux-initramfs.hook > > Sorry but how is a hook better than the install scriptlet in this case? > Are there other packages that need to run mkinitcpio? Never mind. Seeing no commit message I was at loss but I was referred to an earlier discussion: https://lists.archlinux.org/pipermail/arch-dev-public/2016-May/027978.html -- Gaetan
Re: [arch-dev-public] [PATCH 1/1] move initramfs generation from install script to pacman hook
[2016-05-18 13:55:40 +0200] Christian Hesse: > From: Christian Hesse> > Signed-off-by: Christian Hesse > --- > PKGBUILD | 5 + > linux-initramfs.hook | 11 +++ > linux.install| 4 > 3 files changed, 16 insertions(+), 4 deletions(-) > create mode 100644 linux-initramfs.hook Sorry but how is a hook better than the install scriptlet in this case? Are there other packages that need to run mkinitcpio? -- Gaetan
[arch-dev-public] travelling, unavailable 5/18 - 5/26
Hi all, I'll be away on work for the next week and won't have time for some pending Arch-related work. If anyone would like to take care of version bumps for 2 of my packages, curl and dnsmasq, please feel free. They should be straightforward (though dnsmasq has not had a release in a while, so who knows). Cheers, Dave
[arch-dev-public] [PATCH 1/1] move initramfs generation from install script to pacman hook
From: Christian HesseSigned-off-by: Christian Hesse --- PKGBUILD | 5 + linux-initramfs.hook | 11 +++ linux.install| 4 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 linux-initramfs.hook diff --git a/PKGBUILD b/PKGBUILD index 1a40499..1ba2e60 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -20,6 +20,7 @@ source=("https://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar.xz; 'config' 'config.x86_64' # standard config files for mkinitcpio ramdisk 'linux.preset' +'linux-initramfs.hook' 'change-default-console-loglevel.patch') sha256sums=('a93771cd5a8ad27798f22e9240538dfea48d3a2bf2a6a6ab415de3f02d25d866' @@ -27,6 +28,7 @@ sha256sums=('a93771cd5a8ad27798f22e9240538dfea48d3a2bf2a6a6ab415de3f02d25d866' 'b32a4fbd92cf561bca86bb65319a16be853fb8ea7bdd5f12974bd0d054d4c1f9' 'e91660a413baa66fb3269f03ceb85bda1df493b2fec404e9bb0269ad9a2d67a8' 'f0d90e756f14533ee67afda280500511a62465b4f76adcc5effa95a40045179c' +'2d4424928ae3c5f63ee618b4685580f4bd24faf1778553dbd961f85a88ea0910' '1256b241cd477b265a3c2d64bdc19ffe3c9bbcee82ea3994c590c2c76e767d99') validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds @@ -144,6 +146,9 @@ _package() { # add vmlinux install -D -m644 vmlinux "${pkgdir}/usr/lib/modules/${_kernver}/build/vmlinux" + + # install pacman hook + install -D -m644 "${srcdir}/linux-initramfs.hook" "${pkgdir}/usr/share/libalpm/hooks/linux-initramfs.hook" } _package-headers() { diff --git a/linux-initramfs.hook b/linux-initramfs.hook new file mode 100644 index 000..a32248e --- /dev/null +++ b/linux-initramfs.hook @@ -0,0 +1,11 @@ +[Trigger] +Type = File +Operation = Install +Operation = Upgrade +Target = boot/vmlinuz-linux +Target = usr/lib/initcpio/* + +[Action] +Description = Updating Arch Linux initramfs image +When = PostTransaction +Exec = /usr/bin/mkinitcpio -p linux diff --git a/linux.install b/linux.install index dd2fa5c..15dc8b6 100644 --- a/linux.install +++ b/linux.install @@ -8,8 +8,6 @@ post_install () { # updating module dependencies echo ">>> Updating module dependencies. Please wait ..." depmod ${KERNEL_VERSION} - echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." - mkinitcpio -p linux${KERNEL_NAME} } post_upgrade() { @@ -20,8 +18,6 @@ post_upgrade() { # updating module dependencies echo ">>> Updating module dependencies. Please wait ..." depmod ${KERNEL_VERSION} - echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." - mkinitcpio -p linux${KERNEL_NAME} if [ $(vercmp $2 3.13) -lt 0 ]; then echo ">>> WARNING: AT keyboard support is no longer built into the kernel." -- 2.8.2
[arch-dev-public] Signoff report for [testing]
=== Signoff report for [testing] === https://www.archlinux.org/packages/signoffs/ There are currently: * 15 new packages in last 24 hours * 0 known bad packages * 0 packages not accepting signoffs * 7 fully signed off packages * 196 packages missing signoffs * 16 packages older than 14 days (Note: the word 'package' as used here refers to packages as grouped by pkgbase, architecture, and repository; e.g., one PKGBUILD produces one package per architecture, even if it is a split package.) == New packages in [testing] in last 24 hours (15 total) == * iana-etc-20160513-1 (any) * expat-2.1.1-2 (i686) * tar-1.29-1 (i686) * expat-2.1.1-2 (x86_64) * tar-1.29-1 (x86_64) * intel-tbb-4.4_20160413-1 (i686) * ki18n-5.22.1-1 (i686) * linux-zen-4.6-1 (i686) * smartmontools-6.5-1 (i686) * xf86-video-intel-1:2.99.917+654+ga508b11-1 (i686) * intel-tbb-4.4_20160413-1 (x86_64) * ki18n-5.22.1-1 (x86_64) * linux-zen-4.6-1 (x86_64) * smartmontools-6.5-1 (x86_64) * xf86-video-intel-1:2.99.917+654+ga508b11-1 (x86_64) == Incomplete signoffs for [core] (37 total) == * iana-etc-20160513-1 (any) 1/2 signoffs * linux-firmware-20160502.8afadbe-1 (any) 1/2 signoffs * btrfs-progs-4.5.3-1 (i686) 0/1 signoffs * coreutils-8.25-2 (i686) 0/1 signoffs * dhcpcd-6.10.3-1 (i686) 0/1 signoffs * diffutils-3.3-3 (i686) 0/1 signoffs * ed-1.13-2 (i686) 0/1 signoffs * expat-2.1.1-2 (i686) 0/1 signoffs * file-5.27-1 (i686) 0/1 signoffs * grep-2.25-2 (i686) 0/1 signoffs * gzip-1.8-2 (i686) 0/1 signoffs * krb5-1.13.4-1 (i686) 0/1 signoffs * linux-4.6-1 (i686) 0/1 signoffs * lvm2-2.02.153-1 (i686) 0/1 signoffs * m4-1.4.17-2 (i686) 0/1 signoffs * man-db-2.7.5-2 (i686) 0/1 signoffs * net-tools-1.60.20160215git-1 (i686) 0/1 signoffs * nilfs-utils-2.2.4-1 (i686) 0/1 signoffs * openvpn-2.3.11-1 (i686) 0/1 signoffs * sed-4.2.2-4 (i686) 0/1 signoffs * tar-1.29-1 (i686) 0/1 signoffs * which-2.21-2 (i686) 0/1 signoffs * btrfs-progs-4.5.3-1 (x86_64) 0/2 signoffs * coreutils-8.25-2 (x86_64) 1/2 signoffs * dhcpcd-6.10.3-1 (x86_64) 1/2 signoffs * diffutils-3.3-3 (x86_64) 1/2 signoffs * file-5.27-1 (x86_64) 1/2 signoffs * grep-2.25-2 (x86_64) 1/2 signoffs * gzip-1.8-2 (x86_64) 1/2 signoffs * lvm2-2.02.153-1 (x86_64) 1/2 signoffs * m4-1.4.17-2 (x86_64) 1/2 signoffs * man-db-2.7.5-2 (x86_64) 1/2 signoffs * nilfs-utils-2.2.4-1 (x86_64) 0/2 signoffs * openssh-7.2p2-2 (x86_64) 1/2 signoffs * sed-4.2.2-4 (x86_64) 1/2 signoffs * tar-1.29-1 (x86_64) 0/2 signoffs * which-2.21-2 (x86_64) 1/2 signoffs == Incomplete signoffs for [extra] (159 total) == * breeze-icons-5.22.0-1 (any) 0/2 signoffs * extra-cmake-modules-5.22.0-1 (any) 0/2 signoffs * kapidox-5.22.0-1 (any) 0/2 signoffs * oxygen-icons-1:5.22.0-1 (any) 0/2 signoffs * perl-anyevent-4:7.12-2 (any) 0/2 signoffs * attica-qt5-5.22.0-1 (i686) 0/1 signoffs * baloo-5.22.0-1 (i686) 0/1 signoffs * bluez-qt-5.22.0-1 (i686) 0/1 signoffs * frameworkintegration-5.22.0-2 (i686) 0/1 signoffs * intel-tbb-4.4_20160413-1 (i686) 0/1 signoffs * kactivities-5.22.0-1 (i686) 0/1 signoffs * kactivities-stats-5.22.0-1 (i686) 0/1 signoffs * karchive-5.22.0-1 (i686) 0/1 signoffs * kauth-5.22.0-1 (i686) 0/1 signoffs * kbookmarks-5.22.0-1 (i686) 0/1 signoffs * kcmutils-5.22.0-1 (i686) 0/1 signoffs * kcodecs-5.22.0-1 (i686) 0/1 signoffs * kcompletion-5.22.0-1 (i686) 0/1 signoffs * kconfig-5.22.0-1 (i686) 0/1 signoffs * kconfigwidgets-5.22.0-1 (i686) 0/1 signoffs * kcoreaddons-5.22.0-1 (i686) 0/1 signoffs * kcrash-5.22.0-1 (i686) 0/1 signoffs * kdbusaddons-5.22.0-1 (i686) 0/1 signoffs * kdeclarative-5.22.0-1 (i686) 0/1 signoffs * kded-5.22.0-1 (i686) 0/1 signoffs * kdelibs4support-5.22.0-1 (i686) 0/1 signoffs * kdesignerplugin-5.22.0-1 (i686) 0/1 signoffs * kdesu-5.22.0-1 (i686) 0/1 signoffs * kdewebkit-5.22.0-1 (i686) 0/1 signoffs * kdnssd-5.22.0-1 (i686) 0/1 signoffs * kdoctools-5.22.0-1 (i686) 0/1 signoffs * kemoticons-5.22.0-1 (i686) 0/1 signoffs * kfilemetadata-5.22.0-1 (i686) 0/1 signoffs * kglobalaccel-5.22.0-1 (i686) 0/1 signoffs * kguiaddons-5.22.0-1 (i686) 0/1 signoffs * khtml-5.22.0-1 (i686) 0/1 signoffs * ki18n-5.22.1-1 (i686) 0/1 signoffs * kiconthemes-5.22.0-1 (i686) 0/1 signoffs * kidletime-5.22.0-1 (i686) 0/1 signoffs * kimageformats-5.22.0-1 (i686) 0/1 signoffs * kinit-5.22.0-1 (i686) 0/1 signoffs * kio-5.22.0-1 (i686) 0/1 signoffs * kitemmodels-5.22.0-1 (i686) 0/1 signoffs * kitemviews-5.22.0-1 (i686) 0/1 signoffs * kjobwidgets-5.22.0-1 (i686) 0/1 signoffs * kjs-5.22.0-1 (i686) 0/1 signoffs * kjsembed-5.22.0-1 (i686) 0/1 signoffs * kmediaplayer-5.22.0-1 (i686) 0/1 signoffs * knewstuff-5.22.0-1 (i686) 0/1 signoffs * knotifications-5.22.0-1 (i686) 0/1 signoffs * knotifyconfig-5.22.0-1