LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Closed Thread
  Search this Thread
Old 07-06-2017, 04:09 AM   #2536
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, PartedMagic, Xubuntu
Posts: 465

Rep: Reputation: 114Reputation: 114

Quote:
I poked around in mkinitrd sources some time ago, intending to allow for a way to pass an option that would automatically append a kernel version string to the initrd name, but it didn't appear to be as trivial as I wanted, so I gave up. I'd rather not introduce bugs to accompany a feature that nobody else has ever requested :-)
Code:
--- /mnt/sbin/mkinitrd.orig	2017-06-29 19:11:26.000000000 +0200
+++ /mnt/sbin/mkinitrd	2017-06-30 17:21:15.000000000 +0200
@@ -467,7 +466,7 @@
 # If no OUTPUT_IMAGE was specified, read it from the SOURCE_TREE if possible:
 OUTPUT_IMAGE=${OUTPUT_IMAGE:-"$(cat $SOURCE_TREE/initrd-name)"}
 # If we still have no value, apply the default:
-OUTPUT_IMAGE=${OUTPUT_IMAGE:-"/boot/initrd.gz"}
+OUTPUT_IMAGE=${OUTPUT_IMAGE:-"/boot/initrd.gz-$KERNEL_VERSION"}
 # Finally, write the image name into the SOURCE_TREE:
 echo "$OUTPUT_IMAGE" > $SOURCE_TREE/initrd-name
As basically any name could come from the SOURCE TREE us changing it cannot (should not) introduce side effects. And from my experience it does not.


Note there is an empty line at the end of the patch.

Edit Jul 9, 2017: The $KERNEL_VERSION here represents the "-k <target kernel version>" mkinitrd invocation parameter. If this was not given things default to the version of the *running* kernel, something that for my use case (create an initrd for the new generic kernel I just built and installed) would be inappropriate.

Last edited by burdi01; 07-09-2017 at 02:42 AM.
 
Old 07-06-2017, 05:00 AM   #2537
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Sysstat 11.4.5 released (stable version).
Sysstat 11.2.11 released (stable version).

http://sebastien.godard.pagesperso-o...changelog.html

http://perso.orange.fr/sebastien.god...-11.4.5.tar.xz
http://perso.orange.fr/sebastien.god...11.2.11.tar.xz
 
Old 07-06-2017, 08:48 AM   #2539
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
new sip, qscintilla pyqt4, on riverbank:

https://riverbankcomputing.com/software/pyqt/intro

https://sourceforge.net/projects/pyq...-4.19.3.tar.gz
https://sourceforge.net/projects/pyq...-2.10.1.tar.gz
http://sourceforge.net/projects/pyqt...-4.12.1.tar.gz
 
1 members found this post helpful.
Old 07-06-2017, 10:59 AM   #2540
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by rworkman View Post
I poked around in mkinitrd sources some time ago, intending to allow for a way to pass an option that would automatically append a kernel version string to the initrd name, but it didn't appear to be as trivial as I wanted, so I gave up. I'd rather not introduce bugs to accompany a feature that nobody else has ever requested :-)
I'm curious if you could edit the /etc/mkinitrd.conf file and swap KERNEL_VERSION and OUTPUT_IMAGE and then use the KERNEL_VERSION variable in the OUTPUT_IMAGE? Although, this would only work for people who use mkinitrd.conf.

--ORIGINAL--
Code:
# mkinitrd.conf.sample
# See "man mkinitrd.conf" for details on the syntax of this file
#
#SOURCE_TREE="/boot/initrd-tree"
#CLEAR_TREE="0"
#OUTPUT_IMAGE="/boot/initrd.gz"
#KERNEL_VERSION="$(uname -r)"
#KEYMAP="us"
#MODULE_LIST="ext4"
#LUKSDEV="/dev/sda2"
#LUKSKEY="LABEL=TRAVELSTICK:/keys/alienbob.luks"
#ROOTDEV="/dev/sda1"
#ROOTFS="ext3"
#RESUMEDEV="/dev/sda2"
#RAID="0"
#LVM="0"
#UDEV="1"
#MODCONF="0"
#WAIT="1"
--NEW--
Code:
# mkinitrd.conf.sample
# See "man mkinitrd.conf" for details on the syntax of this file
#
#SOURCE_TREE="/boot/initrd-tree"
#CLEAR_TREE="0"
#KERNEL_VERSION="$(uname -r)"
#OUTPUT_IMAGE="/boot/initrd-${KERNEL_VERSION}.gz"
#KEYMAP="us"
#MODULE_LIST="ext4"
#LUKSDEV="/dev/sda2"
#LUKSKEY="LABEL=TRAVELSTICK:/keys/alienbob.luks"
#ROOTDEV="/dev/sda1"
#ROOTFS="ext3"
#RESUMEDEV="/dev/sda2"
#RAID="0"
#LVM="0"
#UDEV="1"
#MODCONF="0"
#WAIT="1"
 
Old 07-06-2017, 12:04 PM   #2541
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Its hard to see the difference like that so I made a diff...
Code:
--- mkinitrd.conf.orig	2017-07-06 10:02:41.392876238 -0700
+++ mkinitrd.conf	2017-07-06 10:02:54.072997790 -0700
@@ -3,8 +3,8 @@
 #
 #SOURCE_TREE="/boot/initrd-tree"
 #CLEAR_TREE="0"
-#OUTPUT_IMAGE="/boot/initrd.gz"
 #KERNEL_VERSION="$(uname -r)"
+#OUTPUT_IMAGE="/boot/initrd-${KERNEL_VERSION}.gz"
 #KEYMAP="us"
 #MODULE_LIST="ext4"
 #LUKSDEV="/dev/sda2"
 
1 members found this post helpful.
Old 07-06-2017, 12:27 PM   #2542
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by bassmadrigal View Post
I'm curious if you could edit the /etc/mkinitrd.conf file and swap KERNEL_VERSION and OUTPUT_IMAGE and then use the KERNEL_VERSION variable in the OUTPUT_IMAGE?
That should work just fine, since mkinitrd.conf is sourced by mkinitrd, so mkinitrd.conf becomes actually part of mkinitrd script and so variables are evaluated just as in scripts.

--
Best regards,
Andrzej Telszewski
 
1 members found this post helpful.
Old 07-06-2017, 12:41 PM   #2543
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by orbea View Post
Its hard to see the difference like that so I made a diff...
Code:
--- mkinitrd.conf.orig	2017-07-06 10:02:41.392876238 -0700
+++ mkinitrd.conf	2017-07-06 10:02:54.072997790 -0700
@@ -3,8 +3,8 @@
 #
 #SOURCE_TREE="/boot/initrd-tree"
 #CLEAR_TREE="0"
-#OUTPUT_IMAGE="/boot/initrd.gz"
 #KERNEL_VERSION="$(uname -r)"
+#OUTPUT_IMAGE="/boot/initrd-${KERNEL_VERSION}.gz"
 #KEYMAP="us"
 #MODULE_LIST="ext4"
 #LUKSDEV="/dev/sda2"
Thanks, I was at work. I was gonna mark it as red, but javascript is disabled and I was too lazy to find the bbcode for it.
 
Old 07-06-2017, 06:02 PM   #2544
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,336

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
wireless-regdb-2017.03.07
https://www.kernel.org/pub/software/...7.03.07.tar.xz

ethtool-4.11
https://www.kernel.org/pub/software/...ol-4.11.tar.xz

bash-completion-2.7
https://github.com/scop/bash-complet...ion-2.7.tar.xz

mercurial-4.2.2
https://www.mercurial-scm.org/releas...l-4.2.2.tar.gz

Last edited by USUARIONUEVO; 07-06-2017 at 06:53 PM.
 
2 members found this post helpful.
Old 07-07-2017, 03:30 PM   #2545
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,336

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
NetworkManager-1.8.2
https://download.gnome.org/sources/N...r-1.8.2.tar.xz

network-manager-applet-1.8.2
https://download.gnome.org/sources/n...t-1.8.2.tar.xz

Last edited by USUARIONUEVO; 07-07-2017 at 03:34 PM.
 
2 members found this post helpful.
Old 07-07-2017, 03:48 PM   #2546
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
PHP 5.6.31 is here and it is also a security release.

It fixes a buffer overflow which open the room for a type of DDOS attack and another one which can expose (chunks of) sensitive data from server, via a prepared GIF image.

I believe that this is more than enough to qualify for a "must upgrade", but of course that's me alone.

http://php.net/downloads.php#v5.6.31
http://php.net/ChangeLog-5.php#5.6.31

And, please remember about enabling of XMLRPC support, which is used for API communication by Moodle, Drupal, Joomla! and so on...

Last edited by Darth Vader; 07-07-2017 at 06:43 PM.
 
2 members found this post helpful.
Old 07-08-2017, 06:50 AM   #2547
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, PartedMagic, Xubuntu
Posts: 465

Rep: Reputation: 114Reputation: 114
mkinitrd

I am hospitalized now with only some kind of kiosk access, so I cannot test.
So for as far as I can theorize about it the .conf approach does not work as it picks up the running kernel. And most of the time you will run mkinitrd for a new (generic) kernel which you cannot boot without the to-be-created new initrd.
You will need the -k <kernel version> mkinitrd invocation parameter and that one is first picked up after reading the .conf -- as I do in with my patch for quite some time now.
 
Old 07-08-2017, 06:59 AM   #2548
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by burdi01 View Post
I am hospitalized now with only some kind of kiosk access, so I cannot test.
So for as far as I can theorize about it the .conf approach does not work as it picks up the running kernel. And most of the time you will run mkinitrd for a new (generic) kernel which you cannot boot without the to-be-created new initrd.
You will need the -k <kernel version> mkinitrd invocation parameter and that one is first picked up after reading the .conf -- as I do in with my patch for quite some time now.
There you go:
Code:
KERNEL_VERSION=$( readlink /boot/vmlinuz-generic | rev | cut -f1 -d- | rev )
:-)

--
Best regards,
Andrzej Telszewski
 
5 members found this post helpful.
Old 07-09-2017, 02:47 AM   #2549
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, PartedMagic, Xubuntu
Posts: 465

Rep: Reputation: 114Reputation: 114
Quote:
There you go:
I added an explanatory note to my Jul 6 patch.
 
1 members found this post helpful.
Old 07-11-2017, 01:44 AM   #2550
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Jul 09, 2017: libarchive 3.3.2 released:

Mar 16, 2017: NFSv4 ACL support for Linux (librichacl)
http://libarchive.org/downloads/libarchive-3.3.2.tar.gz

screen-4.6.1:

http://git.savannah.gnu.org/cgit/screen.git
http://ftp.gnu.org/gnu/screen/screen-4.6.1.tar.gz
 
1 members found this post helpful.
  


Closed Thread



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] how to show the current time at the top in the current shell Always ? rohitchauhan Linux - General 5 04-09-2014 03:05 PM
Slackware ARM (current) epic mistake: the current Android kernels are kicked out! Darth Vader Slackware 16 08-25-2013 04:36 PM
[SOLVED] setup fails on most current Slackware-current March 26, 2012 AlleyTrotter Slackware 15 04-09-2012 06:05 AM
Observation of Feb -current vs March -current Hangaber Slackware 14 03-12-2010 08:26 AM
cvs diff the most current and second last current version powah Linux - Software 1 03-30-2006 01:02 PM

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

All times are GMT -5. The time now is 04:45 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