You are not logged in.

#1 2018-08-12 20:00:38

Lazzu
Member
Registered: 2012-10-27
Posts: 60

[solved] Accidentally pressed ctrl-c while updating

So yeah. I was stupid and tried to copy/paste something and managed to interrupt two of the hooks while doing a full system upgrade. Is there a way to re-run the previous hooks? Or where can I find the commands that were being run at that point?

A snippet of what happened:

==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
^C
Interrupt signal received
error: command failed to execute correctly
( 7/11) Reloading system manager configuration...
( 8/11) Creating system user accounts...
^C
Interrupt signal received
error: command terminated by signal 2: Interrupt
( 9/11) Arming ConditionNeedsUpdate...

Last edited by Lazzu (2018-08-12 20:30:48)

Offline

#2 2018-08-12 20:07:47

lo1
Member
Registered: 2017-09-25
Posts: 579

Re: [solved] Accidentally pressed ctrl-c while updating

Based on what you posted, you just need to build a sane intiramfs again (presumably that was due to a kernel upgrade?)

Post the pacman log of the last update so we'll see if there's some package which requires particular instructions.

Offline

#3 2018-08-12 20:11:08

Lazzu
Member
Registered: 2012-10-27
Posts: 60

Re: [solved] Accidentally pressed ctrl-c while updating

Yes, there was a kernel upgrade. Here's the pacman log:

[2018-08-12 22:45] [PACMAN] Running 'pacman -Syu'
[2018-08-12 22:45] [PACMAN] synchronizing package lists
[2018-08-12 22:46] [PACMAN] starting full system upgrade
[2018-08-12 22:46] [ALPM] running '70-dkms-remove.hook'...
[2018-08-12 22:46] [ALPM] transaction started
[2018-08-12 22:46] [ALPM] upgraded binutils (2.31.1-1 -> 2.31.1-3)
[2018-08-12 22:46] [ALPM] upgraded gdbm (1.16-1 -> 1.17-1)
[2018-08-12 22:46] [ALPM] upgraded llvm-libs (6.0.1-2 -> 6.0.1-3)
[2018-08-12 22:46] [ALPM] upgraded libpcap (1.8.1-2 -> 1.9.0-1)
[2018-08-12 22:46] [ALPM] upgraded nvidia-utils (396.45-1 -> 396.51-1)
[2018-08-12 22:46] [ALPM-SCRIPTLET] If you run into trouble with CUDA not being available, run nvidia-modprobe first.
[2018-08-12 22:46] [ALPM] upgraded lib32-nvidia-utils (396.45-1 -> 396.51-1)
[2018-08-12 22:46] [ALPM] upgraded libmagick6 (6.9.10.8-2 -> 6.9.10.9-1)
[2018-08-12 22:46] [ALPM] upgraded libmm-glib (1.8.0-1 -> 1.8.0-2)
[2018-08-12 22:46] [ALPM] upgraded libwps (0.4.9-1 -> 0.4.10-1)
[2018-08-12 22:46] [ALPM] upgraded libxnvctrl (396.45-1 -> 396.51-1)
[2018-08-12 22:46] [ALPM] upgraded mkinitcpio-busybox (1.28.4-1 -> 1.29.2-1)
[2018-08-12 22:46] [ALPM] upgraded linux (4.17.13.arch1-1 -> 4.17.14.arch1-1)
[2018-08-12 22:46] [ALPM] upgraded linux-headers (4.17.13.arch1-1 -> 4.17.14.arch1-1)
[2018-08-12 22:46] [ALPM] upgraded linux-lts (4.14.61-1 -> 4.14.62-1)
[2018-08-12 22:47] [ALPM] upgraded nvidia (396.45-6 -> 396.51-1)
[2018-08-12 22:47] [ALPM] upgraded nvidia-settings (396.45-1 -> 396.51-1)
[2018-08-12 22:47] [ALPM] upgraded opencl-nvidia (396.45-1 -> 396.51-1)
[2018-08-12 22:47] [ALPM] upgraded postgresql-libs (10.4-6 -> 10.5-1)
[2018-08-12 22:47] [ALPM] upgraded webkit2gtk (2.20.3-2 -> 2.20.4-1)
[2018-08-12 22:47] [ALPM] transaction completed
[2018-08-12 22:47] [ALPM] running '60-linux-lts.hook'...
[2018-08-12 22:47] [ALPM] running '60-linux.hook'...
[2018-08-12 22:47] [ALPM] running '70-dkms-install.hook'...
[2018-08-12 22:47] [ALPM] running '90-linux-lts.hook'...
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Starting build: 4.14.62-1-lts
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts.img
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Image generation successful
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Starting build: 4.14.62-1-lts
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Image generation successful
[2018-08-12 22:47] [ALPM] running '90-linux.hook'...
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Starting build: 4.17.14-arch1-1-ARCH
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Image generation successful
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Starting build: 4.17.14-arch1-1-ARCH
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Image generation successful
[2018-08-12 22:47] [ALPM] running 'nvidia.hook'...
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Starting build: 4.14.62-1-lts
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts.img
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Image generation successful
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Starting build: 4.14.62-1-lts
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2018-08-12 22:47] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2018-08-12 22:47] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
[2018-08-12 22:47] [ALPM] running 'systemd-daemon-reload.hook'...
[2018-08-12 22:47] [ALPM] running 'systemd-sysusers.hook'...
[2018-08-12 22:47] [ALPM] running 'systemd-update.hook'...
[2018-08-12 22:47] [ALPM] running 'texinfo-install.hook'...
[2018-08-12 22:47] [ALPM] running 'update-desktop-database.hook'...

Offline

#4 2018-08-12 20:17:53

lo1
Member
Registered: 2017-09-25
Posts: 579

Re: [solved] Accidentally pressed ctrl-c while updating

Seems to me like the hook managed to build the initramfs succesfully after all.

Post the output of

file /boot/vmlinuz-linux

If in doubt, just rebuild the initramfs with mkinitcpio and you're good to go.

Offline

#5 2018-08-12 20:28:42

Lazzu
Member
Registered: 2012-10-27
Posts: 60

Re: [solved] Accidentally pressed ctrl-c while updating

Yeah, the version of both kernels seems to match:

[23:22][lasse@hirmu][log] $ file /boot/vmlinuz-linux
/boot/vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 4.17.14-arch1-1-ARCH (builduser@heftig-2746) #1 SMP PREEMPT Thu Aug 9 11:56:50 UTC 2018, RO-rootFS, swap_dev 0x5, Normal VGA
[23:22][lasse@hirmu][log] $ file /boot/vmlinuz-linux-lts 
/boot/vmlinuz-linux-lts: Linux kernel x86 boot executable bzImage, version 4.14.62-1-lts (builduser@andyrtr) #1 SMP Thu Aug 9 20:50:08 CEST 2018, RO-rootFS, swap_dev 0x4, Normal VGA

Looking at it closer, it was the fallback that I interrupted. I'll rebuild initramfs just in case then.

Thank you!

Offline

Board footer

Powered by FluxBB