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


Reply
  Search this Thread
Old 11-09-2020, 11:49 PM   #5881
Weber Kai
Member
 
Registered: Jun 2009
Location: Brasília, Brazil
Distribution: Slackware64 14.2
Posts: 38

Rep: Reputation: 24

Hello, fellows!

I have 3 requests, please, evaluate if they are feasible or not...

1) init script generated by mkinitrd -> add argument "livemedia=" (this will allow to use mkinitrd to boot live iso without tweaking init by hand each time)
2) mkinitrd and init script generated -> add argument "resume_offset=" (this will allow hibernation to swapfile without tweaking init by hand each time)
3) init scripts rc.S and rc.6 -> Slackware start script and ending script doesn't handle previously mounted / fs in nbd very well. In a VPS with nbd (network block device), ramdisk script mount nbd / disk and pass control to Slackware init. Then rc.S remount / ro and tries to fsck then hangs. At ending, rc.6 tries to remount ro/unmount all fs and hangs also. These scripts could skip / fs if / is on nbd as both mounting and umounting are done by VPS ramdisk script, and it should be writable since the beginning until the very end (and call /usr/sbin DO_PIVOT=1 /run/initramfs/shutdown reboot (or poweroff) after rc.6 ends).

(maybe I can solve some of these requests...)

thanks

best regards
Weber Kai

Last edited by Weber Kai; 11-10-2020 at 12:40 AM.
 
Old 11-10-2020, 12:19 AM   #5882
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,078

Rep: Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748
After the Oct 1st -current upgrade to ghostscript-9.53.3 (maybe already with the 9.53.0 upgrade in September), it's no longer possible to open .ps files in atril/evince/qpdfview. Rebuilding libspectre-0.2.9 solves this. A rebuild for the -current repo would be appreciated, thanks!
This is also mentioned in https://www.linuxquestions.org/quest...ng-4175684959/ and https://www.linuxquestions.org/quest...ar-4175683329/

Last edited by kgha; 11-10-2020 at 12:20 AM.
 
1 members found this post helpful.
Old 11-10-2020, 12:57 AM   #5883
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,542

Rep: Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386
Quote:
Originally Posted by Weber Kai View Post
Hello, fellows!

I have 3 requests, please, evaluate if they are feasible or not...

1) init script generated by mkinitrd -> add argument "livemedia=" (this will allow to use mkinitrd to boot live iso without tweaking init by hand each time)
2) mkinitrd and init script generated -> add argument "resume_offset=" (this will allow hibernation to swapfile without tweaking init by hand each time)

3) init scripts rc.S and rc.6 -> Slackware start script and ending script doesn't handle previously mounted / fs in nbd very well. In a VPS with nbd (network block device), ramdisk script mount nbd / disk and pass control to Slackware init. Then rc.S remount / ro and tries to fsck then hangs. At ending, rc.6 tries to remount ro/unmount all fs and hangs also. These scripts could skip / fs if / is on nbd as both mounting and umounting are done by VPS ramdisk script, and it should be writable since the beginning until the very end (and call /usr/sbin DO_PIVOT=1 /run/initramfs/shutdown reboot (or poweroff) after rc.6 ends).

(maybe I can solve some of these requests...)

thanks

best regards
Weber Kai
I do not know how others think, but I consider the NBD devices usage as root just an exotic case of virtualization, which is barely of general interest. Maybe this kind of usage worths a custom sysv init scripts package for your virtualization solution?

However, I will love to see how "you tweak by hand every time" the initrd to support the parameters "livemedia" and "resume_offset" ...

So, you are kind to show us how you do it?

Last edited by LuckyCyborg; 11-10-2020 at 01:02 AM.
 
Old 11-10-2020, 01:38 AM   #5884
Weber Kai
Member
 
Registered: Jun 2009
Location: Brasília, Brazil
Distribution: Slackware64 14.2
Posts: 38

Rep: Reputation: 24
Quote:
Originally Posted by LuckyCyborg View Post
I do not know how others think, but I consider the NBD devices usage as root just an exotic case of virtualization, which is barely of general interest. Maybe this kind of usage worths a custom sysv init scripts package for your virtualization solution?

However, I will love to see how "you tweak by hand every time" the initrd to support the parameters "livemedia" and "resume_offset" ...

So, you are kind to show us how you do it?
1) When the init script stops, you will mount the partition which contains the iso file in another mount point like /myhd and after that you mount the iso file in /mnt, and then the script can continue. Or tweak init by hand to do it and compress again. (http://git.slackware.nl/liveslak/tree/liveinit.tpl) <- If default init would accept livemedia argument, you could have current iso file in any partition and boot it in grub only adding an argument "livemedia", instead of creating a tweaked initrd.gz to boot it. You could use installation iso as rescue easily. (I need to tweak the init everytime I upgrade the iso) A lot of people could download the iso and boot easily from hd without usb pendrive and install Slackware.
2) As the patch "init-swapfile.patch" in this page https://docs.slackware.com/howtos:sl...le_hibernation is not working anymore, I change init by hand, as it is easy to find the correct insertion points. Then compress initrd.gz again. (I need to tweak the init everytime I upgrade the kernel)
3) Agree, but a lot of VPS providers could enable Slackware 'out of the box' with this tweak. When Slackware don't boot or halt, they just give up...

hth

Last edited by Weber Kai; 11-10-2020 at 02:12 AM.
 
Old 11-10-2020, 02:43 AM   #5885
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by Weber Kai View Post
1) When the init script stops, you will mount the partition which contains the iso file in another mount point like /myhd and after that you mount the iso file in /mnt, and then the script can continue. Or tweak init by hand to do it and compress again. (http://git.slackware.nl/liveslak/tree/liveinit.tpl) <- If default init would accept livemedia argument, you could have current iso file in any partition and boot it in grub only adding an argument "livemedia", instead of creating a tweaked initrd.gz to boot it. You could use installation iso as rescue easily. (I need to tweak the init everytime I upgrade the iso) A lot of people could download the iso and boot easily from hd without usb pendrive and install Slackware.
I think you are overcomplicating things here. Grub can boot a live ISO if you point to it like this (suppose you have a liveslak ISO stored on a disk with filesystem label MYHOME):

Code:
set imgdevpath='/dev/disk/by-label/MYHOME'
set isofile="/downloads/slackware64-live-current-x86_64.iso"
loopback loop $isofile
linux (loop)/boot/generic fromiso=$imgdevpath/$isofile load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0
initrd (loop)/boot/initrd.img
No need for mkinitrd patches.

Quote:
2) As the patch "init-swapfile.patch" in this page https://docs.slackware.com/howtos:sl...le_hibernation is not working anymore, I change init by hand, as it is easy to find the correct insertion points. Then compress initrd.gz again. (I need to tweak the init everytime I upgrade the kernel)
Post your patch in this thread so that someone can have a look at it. It's always better to post solution proposals than just to mention that you want something changed.
Quote:
3) Agree, but a lot of VPS providers could enable Slackware 'out of the box' with this tweak. When Slackware don't boot or halt, they just give up...
Same here, if you have a working patch, show it. Most of us here probably do not use NBD on a VPS.
 
Old 11-10-2020, 03:23 AM   #5886
Weber Kai
Member
 
Registered: Jun 2009
Location: Brasília, Brazil
Distribution: Slackware64 14.2
Posts: 38

Rep: Reputation: 24
Quote:
Originally Posted by Alien Bob View Post
I think you are overcomplicating things here. Grub can boot a live ISO if you point to it like this:
No need for mkinitrd patches.
Unfortunately the Slackware 14.2 installation iso is not a live iso and doesn't support that direct boot... But I'll send a proposal here to current standard mkinitrd...

Quote:
Originally Posted by Alien Bob View Post
Post your patch in this thread so that someone can have a look at it.
Cool! I'll do it!

Quote:
Originally Posted by Alien Bob View Post
It's always better to post solution proposals than just to mention that you want something changed.
Agree. As I've said earlier I can propose solution to some of those requests.
I didn't send them before because I thought this thread was limited to requests not proposals...
Sorry, asperger here... But I'll send the patchs...

Quote:
Same here, if you have a working patch, show it. Most of us here probably do not use NBD on a VPS.
I've done all tweaks to Slackware stable.

I will update them against current, and maybe they can fit next release.

Thank you very much!
 
Old 11-10-2020, 04:13 AM   #5887
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,229

Rep: Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017
On 'vtown deps' speech-dispacher is old (0.8.8, 7 Nov 2017)

0.10.1 (9 Aug 2020), or 0.9.1 (10 May 2019) here;

https://github.com/brailcom/speechd/releases
 
Old 11-10-2020, 05:49 AM   #5888
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,542

Rep: Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386
Quote:
Originally Posted by Weber Kai View Post
Unfortunately the Slackware 14.2 installation iso is not a live iso and doesn't support that direct boot... But I'll send a proposal here to current standard mkinitrd...
Also the Slackware -current does not have the installation ISO as a live ISO.

I believe that you make confusion between Mr. Hameleers' LiveSlak and the Slackware-current installation ISO.

And I do not see how the initrd from standard Slackware -current can use those ISOs for booting.

In the link given by you to LiveSlak's initrd, finding and mounting an ISO is useless unless further the initrd is also capable to assemble the live system from the compressed files found within ISO and to boot it.

AGAIN, I strongly believe that you confuse the LiveSlak and its live system way with the standard Slackware where the installer is in an initrd, and further, the operating system's initrd needs to find and prepare the root filestem, then to switch to it.

Last edited by LuckyCyborg; 11-10-2020 at 05:56 AM.
 
Old 11-10-2020, 06:00 AM   #5889
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,216

Rep: Reputation: 298Reputation: 298Reputation: 298
Just a question, out of curiousity, will slackware move to GRUB as a default boot loader ?
 
Old 11-10-2020, 06:42 AM   #5890
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
Quote:
Originally Posted by saxa View Post
Just a question, out of curiosity, will slackware move to GRUB as a default boot loader ?
Not an answer, but: as I am enhancing the Slint installer, and now making it a modification of the files in https://mirrors.slackware.com/slackw...rce/installer/ instead of unpacking and modifying a Slackware installer as I did until now, I will share my modifications, including using GRUB as default boot loader, just providing an "installer" source directory in the main Slint repository as does Slackware. This will make possible to cherry pick some modifications, like our new "auto" script intended to provide a guided installation to help newbies in addition to the setup script. I appreciate that Pat[2] makes the source of the installer available and provide well documented ways to customize it, so let's do an "échange de bons procédés[1]"

[1]Even deepl.com and linguee didn't help much this time. Maybe "give and take" or "exchange of good manners"?
[2]Thanks to Pat and also to the authors of the main script Stuart Winter and Eric Hameleers.

Last edited by Didier Spaier; 11-10-2020 at 01:04 PM. Reason: Note [2] added.
 
Old 11-10-2020, 07:49 PM   #5891
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current
Posts: 356
Blog Entries: 1

Rep: Reputation: Disabled
Vulkan SDK 1.2.154.0 presents itself.
 
Old 11-11-2020, 03:55 AM   #5892
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 611

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
https://www.linuxquestions.org/quest...ml#post6184145
 
1 members found this post helpful.
Old 11-11-2020, 11:52 AM   #5893
mats_b_tegner
Member
 
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 946

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Thunderbird 78.4.3
https://www.thunderbird.net/en-US/th.../releasenotes/
https://ftp.mozilla.org/pub/thunderb....source.tar.xz

MariaDB 10.5.8
https://mariadb.com/kb/en/mariadb-1058-release-notes/
https://downloads.mariadb.org/mariadb/10.5.8/

Last edited by mats_b_tegner; 11-11-2020 at 02:36 PM.
 
Old 11-11-2020, 01:15 PM   #5894
shastah
Member
 
Registered: Dec 2017
Posts: 52

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
@drumz: it is very rare that an upgrade of a package brings a modified configuration file. But if this is the case, it is worth being aware of that and spotting the differences.
There are, however, packages that ship config files containing version numbers (hello s-nail), or paths to documentation files which also contain version numbers (hello mutt).
Having to review the diff when the version number is literally the only thing that has changed, is quite boring.
IMHO Slackware could benefit from a policy that config.new files must not contain software version numbers.
 
Old 11-11-2020, 02:54 PM   #5895
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
Quote:
Originally Posted by shastah View Post
There are, however, packages that ship config files containing version numbers (hello s-nail), or paths to documentation files which also contain version numbers (hello mutt).
Having to review the diff when the version number is literally the only thing that has changed, is quite boring.
IMHO Slackware could benefit from a policy that config.new files must not contain software version numbers.
By association of ideas, this triggers another suggestion: remove the suffix -<version> when naming /usr/doc/<package>-<version>, which could make way easier for newbies to find the documentation for a given package (not having to rely on tab completion, just typing "cd /usr/doc/<package>"). The only caveat would be if several versions of a package are installed (like e.g. python3-3.5.9 and python3-3.9.0. But for these (very few) cases one could just put the docs for each version in a separate sub directory, or keep the current naming only in theses cases.

PS in case someone wonder: I suggest to make this change progressively, on occasion of packages' update for other reasons.

Last edited by Didier Spaier; 11-11-2020 at 06:07 PM. Reason: PS added.
 
  


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] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

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

All times are GMT -5. The time now is 04:15 AM.

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