You are not logged in.

#1 2013-04-05 10:32:55

wild.lumberjack
Member
Registered: 2013-02-17
Posts: 5

[SOLVED] mkinitcpio and kernel upgrades without SyncFirst option?

As pacman 4.1 doesn't more provide SyncFirst option how to be sure mkinitcpio will run after linux-headers installation?

for example, in case of
https://wiki.archlinux.org/index.php/Vi … any_kernel

previously, i had

SyncFirst   = pacman linux-headers linux-lts-headers linux-pf-headers

Last edited by wild.lumberjack (2013-04-05 19:36:32)

Offline

#2 2013-04-05 17:23:10

SuperBo
Member
Registered: 2012-02-20
Posts: 45

Re: [SOLVED] mkinitcpio and kernel upgrades without SyncFirst option?

Same question.

Offline

#3 2013-04-05 17:27:03

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 5,371

Re: [SOLVED] mkinitcpio and kernel upgrades without SyncFirst option?


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

#4 2013-04-05 17:27:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,431

Re: [SOLVED] mkinitcpio and kernel upgrades without SyncFirst option?

Offline

#5 2013-04-05 19:35:00

wild.lumberjack
Member
Registered: 2013-02-17
Posts: 5

Re: [SOLVED] mkinitcpio and kernel upgrades without SyncFirst option?

ah, thanks
just changed my alias for system upgrade to

 sudo pacman -Sy linux-headers linux-lts-headers linux-pf-headers --needed && sudo pacman -Su 

Offline

#6 2013-04-06 07:45:50

JohnDVD
Member
Registered: 2011-11-29
Posts: 34

Re: [SOLVED] mkinitcpio and kernel upgrades without SyncFirst option?

I hat to uninstall yaourt, yail and package-query simply by:

sudo pacman -Rcs yaourt

then run commands:

sudo pacman -Sy
sudo pacman -S linux-headers
sudo pacman -S pacman
sudo pacman -S yaourt

modify ~/.bashrc with this line

alias yaourt='sudo /usr/bin/pacman -Sy linux-headers pacman --needed 2>/dev/null && yaourt'

2>/dev/null suppresses warnings about the skipped reinstalls of linux-headers and pacman

Now use yaourt -Su instead of formerly yaourt -Syu

yaourt -Su

Arch Rulez
JohnDVD

Last edited by JohnDVD (2013-04-06 07:49:38)

Offline

#7 2013-04-14 21:48:08

vladthedog
Member
Registered: 2010-12-03
Posts: 45

Re: [SOLVED] mkinitcpio and kernel upgrades without SyncFirst option?

wild.lumberjack wrote:

ah, thanks
just changed my alias for system upgrade to

 sudo pacman -Sy linux-headers linux-lts-headers linux-pf-headers --needed && sudo pacman -Su 

I modified the above slightly since I use the same .bashrc on multiple systems (so different header requirements).  Thought I'd share.  I also use packer in the second part to include aur.... convert that to pacman for just official repo's.


alias sysupgrade='sudo pacman -Sy $(pacman -Qq | grep headers) --needed && sudo packer -Su'

Offline

Board footer

Powered by FluxBB