LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-30-2019, 06:07 AM   #1
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Slackware -current. Slackpkg ended with warning: incorrect md5sum during upgrade


I use my own local mirror for Slackware 64 -current. I use AlieBob mirror-current.sh script. I synced mirror. Then I started slackpkg to upgrade system, slackpkg version 2.83.0. I noticed following strange behavior: slackpg because kernel was updated told to rerun mkinitrd because it thinks there is kernel with initrd ram disk. Slackpkg refers to this part of /etc/lilo.conf
Code:
# cat /etc/lilo.conf
.........
#image = /mnt/hd/boot/swsetup/bzImage
#  initrd = /mnt/hd/boot/swsetup/initrd.img
#  addappend = "load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=huge.s"
#  label = SwSetup
.........
but pure clean it is commented out - so why slackpkg told to rerun mkinitrd? File /etc/lilo.conf is very old - but I don't recall that after earlier updates there was message about to rerun mkinitrd. The next thing is that slackpkg gave me warning about md5sum mismatch packages aaa_elflibs-15.0-x86_64-11.txz and glibc-solibs-2.30-x86_64-1.txz. So I went to directory where I keep mirror and manually verified checksums against these files on my local mirror. I was suspecting possible mirror corruption because of disk failure. Yet manual verification showed that these files are ok. I calculated checksums for them and they are correct. So I reinstalled those packages with installpkg command. I don't know but for me actions of slackpg seems to be rather strange. I hope after reboot system will work.
 
Old 09-30-2019, 03:32 PM   #2
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
About initrd and mkinitrd rerun message.
May be filtering lilo.conf comments can fix this:
/usr/libexec/slackpkg/functions.d/post-functions.sh
Code:
-		if [ -x /sbin/lilo ] && [ -r /etc/lilo.conf ] && grep -q initrd /etc/lilo.conf ; then
+		if [ -x /sbin/lilo ] && [ -r /etc/lilo.conf ] && grep -v '^\s*#' /etc/lilo.conf | grep -q initrd ; then
 
Old 09-30-2019, 03:46 PM   #3
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717

Original Poster
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Thanks I will have look at this. Till now system works. I am much more worried about mismatch mdsum warning. Something went wrong. No idea what. Disk failure during file copy? Does it possible to reconfigure slackpkg to use local repository (mirror) instead of local or remote ftp/http server? This will avoid necessity to copy files from place to another. I would sync mirror and then slackpkg would install directly from my own local mirror Now it access it through ftp service. Connects and copies them into its own cache. From my point it is the same work done twice.

Edit: It is generally good idea to add parser to slackpkg which will be capable to ignore all lines commented out. Then look for initrd. Possible spaces, tabs at the start of line followed by #. Correct parser is of course contained in lilo - it reads lilo.conf and skips all commented out lines. So preferably we should go the way lilo goes.

Last edited by igadoter; 09-30-2019 at 03:55 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackpkg upgrade-all returns 'no packages to upgrade' after slackpkg-update has downloaded files san2ban Slackware 8 11-01-2019 05:44 AM
having trouble after upgrading 14.1 slackware using slackpkg and slackpkg+ [solved] slackartist Slackware 1 12-28-2015 07:28 AM
[SOLVED] MD5Sum - How do I compute the MD5Sum of a downloaded iso? kd6tzf Linux - Newbie 13 01-29-2015 12:15 PM
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
Md5sum Keeps turning up incorrect but consistent results! Dachy Slackware 10 01-26-2006 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration