Show detailed package list for emerge.
This commit is contained in:
parent
fcac246ee2
commit
4f818b99e9
|
@ -302,7 +302,7 @@ let STAGE_CNT++
|
||||||
if [ $STAGE_CNT -eq $STAGE ]; then
|
if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
echo "======= STAGE $STAGE: 2'nd toolchain build ======="
|
echo "======= STAGE $STAGE: 2'nd toolchain build ======="
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
emerge -1bvq sys-libs/glibc sys-devel/binutils sys-devel/gcc sys-apps/portage
|
emerge -1bv sys-libs/glibc sys-devel/binutils sys-devel/gcc sys-apps/portage
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: 2'nd toolchain build failed ;-( ========" && exit $STAGE
|
[ 0 -ne $? ] && echo "Stage $STAGE: 2'nd toolchain build failed ;-( ========" && exit $STAGE
|
||||||
|
|
||||||
let STAGE++
|
let STAGE++
|
||||||
|
@ -313,7 +313,7 @@ let STAGE_CNT++
|
||||||
if [ $STAGE_CNT -eq $STAGE ]; then
|
if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
echo "======= STAGE $STAGE: rebuild @system ======="
|
echo "======= STAGE $STAGE: rebuild @system ======="
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
emerge -1bkevq @system
|
emerge -1bkev @system
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: @system rebuild failed ;-( =======" && exit $STAGE
|
[ 0 -ne $? ] && echo "Stage $STAGE: @system rebuild failed ;-( =======" && exit $STAGE
|
||||||
|
|
||||||
let STAGE++
|
let STAGE++
|
||||||
|
@ -324,7 +324,7 @@ let STAGE_CNT++
|
||||||
if [ $STAGE_CNT -eq $STAGE ]; then
|
if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
echo "======= STAGE $STAGE: rebuild @world ======="
|
echo "======= STAGE $STAGE: rebuild @world ======="
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
emerge -1bkevq @world
|
emerge -1bkev @world
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: @world rebuild failed ;-( =======" && exit $STAGE
|
[ 0 -ne $? ] && echo "Stage $STAGE: @world rebuild failed ;-( =======" && exit $STAGE
|
||||||
|
|
||||||
let STAGE++
|
let STAGE++
|
||||||
|
@ -353,7 +353,7 @@ if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo '------- Upgrading @system packages -------'
|
echo '------- Upgrading @system packages -------'
|
||||||
emerge -uDNqv --with-bdeps=y @system
|
emerge -uDNv --with-bdeps=y @system
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: @system upgrade failed ;-( =======" && exit $STAGE
|
[ 0 -ne $? ] && echo "Stage $STAGE: @system upgrade failed ;-( =======" && exit $STAGE
|
||||||
|
|
||||||
let STAGE++
|
let STAGE++
|
||||||
|
@ -435,7 +435,7 @@ let STAGE_CNT++
|
||||||
if [ $STAGE_CNT -eq $STAGE ]; then
|
if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
echo "======= STAGE $STAGE: @world upgrade ======="
|
echo "======= STAGE $STAGE: @world upgrade ======="
|
||||||
echo 'Looking for necessity to upgrade @world packages...'
|
echo 'Looking for necessity to upgrade @world packages...'
|
||||||
emerge -uDNqv @world
|
emerge -uDNv @world
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: @world upgrade failed ;-( =======" && exit $STAGE
|
[ 0 -ne $? ] && echo "Stage $STAGE: @world upgrade failed ;-( =======" && exit $STAGE
|
||||||
|
|
||||||
let STAGE++
|
let STAGE++
|
||||||
|
@ -447,7 +447,7 @@ if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
echo "======= STAGE $STAGE: Xorg server upgrades ======="
|
echo "======= STAGE $STAGE: Xorg server upgrades ======="
|
||||||
if [ -f /etc/portage/need_upgrade_xorg_input_drivers ]; then
|
if [ -f /etc/portage/need_upgrade_xorg_input_drivers ]; then
|
||||||
echo '------- Upgrading Xorg input drivers -------'
|
echo '------- Upgrading Xorg input drivers -------'
|
||||||
emerge -1qv @x11-module-rebuild `qlist -IC xf86-input xorg-drivers`
|
emerge -1v @x11-module-rebuild `qlist -IC xf86-input xorg-drivers`
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: Xorg input drivers upgrade failed ;-( =======" && exit $STAGE
|
[ 0 -ne $? ] && echo "Stage $STAGE: Xorg input drivers upgrade failed ;-( =======" && exit $STAGE
|
||||||
rm /etc/portage/need_upgrade_xorg_input_drivers
|
rm /etc/portage/need_upgrade_xorg_input_drivers
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: cann't remove /etc/portage/need_upgrade_xorg_input_drivers ;-( =======" && exit $STAGE
|
[ 0 -ne $? ] && echo "Stage $STAGE: cann't remove /etc/portage/need_upgrade_xorg_input_drivers ;-( =======" && exit $STAGE
|
||||||
|
@ -498,8 +498,8 @@ let STAGE_CNT++
|
||||||
# Scan for missed shared libraries
|
# Scan for missed shared libraries
|
||||||
if [ $STAGE_CNT -eq $STAGE ]; then
|
if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
echo "======= STAGE $STAGE: Scan for old versions of shared libraries ======="
|
echo "======= STAGE $STAGE: Scan for old versions of shared libraries ======="
|
||||||
emerge -1qv @preserved-rebuild
|
emerge -1v @preserved-rebuild
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: emerge -1qv @preserved-rebuild failed ;-( =======" && exit $STAGE
|
[ 0 -ne $? ] && echo "Stage $STAGE: emerge -1v @preserved-rebuild failed ;-( =======" && exit $STAGE
|
||||||
|
|
||||||
let STAGE++
|
let STAGE++
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -96,7 +96,7 @@ sed -i "s~\/boot\/vmlinuz-[0-9][^ ]*~\/boot\/vmlinuz-$REVISION~g;
|
||||||
[ -f /boot/grub2/grub.cfg ] && grub2-mkconfig -o /boot/grub2/grub.cfg
|
[ -f /boot/grub2/grub.cfg ] && grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
|
|
||||||
echo "--------- Rebuilding kernel modules ---------"
|
echo "--------- Rebuilding kernel modules ---------"
|
||||||
emerge -1qv @module-rebuild
|
emerge -1v @module-rebuild
|
||||||
[ 0 -ne $? ] && echo "Upgrading kernel modules failed ;-(" && exit -1
|
[ 0 -ne $? ] && echo "Upgrading kernel modules failed ;-(" && exit -1
|
||||||
|
|
||||||
cd $pwdtmp
|
cd $pwdtmp
|
||||||
|
|
Loading…
Reference in New Issue