SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, as far as I know elvis still does not have UTF-8 support even in the (unofficial?) git repo and if I can trust what I read there are not much features available in elvis but not in vim.
I realize that elvis is smaller. Maybe move it to /pasture or /extra?
I guess that our BDFL will not welcome this suggestion (but didn't he migrate to vim himself?). Waiting for the flame war to begin
PS This is my post #7500 @ LQ. Maybe I should have waited to reach #10000...
Last edited by Didier Spaier; 07-13-2017 at 06:47 AM.
Reason: Typo fix.
I've always preferred elvis over vim, but lack of mbcs support is a severe impediment to its usefulness and given the move to default utf8 in the next release now is probably the time to address this. Anyone still running sbcs will likely still find it useful, so /pasture seems like a good option.
I personally switch to vim as one of the first post-install operations but I just change the /usr/bin/vi symlink to point to /usr/bin/vim.
elvis is pretty useful to have installed and I bet would be still used by a lot of people also if Slackware will move to using vim by default (there's also who is using the real ex out there, not the symlink to vim) so, IMHO, I would opt to just changing the symlink and not moving it away from the default install...
My best guess is piterpunk, who gave us the slackpkg tool. The first time I ever upgraded my Slackware install, I conducted everything manually, as there was no other option. When slackpkg came along, I was amazed at how it handled everything so easily and cleanly. As for pushing, slackpkg resided in /extra through a number of releases before becoming part of official Slackware. The long gestation allowed for thorough examination of the then new tool.
If the lilo prompt now appears dated with the appearance of (and requirement for) newer boot loaders, it simply reflects the longstanding tradition of lilo being the official Slackware boot loader. If the prompt now peeves you, why not use the clever functionality that is provided within slackpkg? Simply copy /usr/libexec/slackpkg/functions.d/post-functions.sh to a new file that lexicographically sorts after the original, amend the lookkernel() function to suit your needs along the lines suggested by Loomx, then enjoy your local customisation. I have being doing this for years, so that I am automatically prompted to build a new initrd when required.
As a continuing user of lilo, I want the existing functionality retained.
I also appreciate that Slackware still gives a nod to past contributors to the open source community by retention of software that seems quaint and quirky to those without the history.
Perhaps this brief history might tone down some of the denigration from the nitpickers who have not given to Slackware what others have done in the past.
Running the 4.12.0 kernel I just built the 4.12.1 one:
Code:
root@riposo:/boot# uname -a
Linux riposo 4.12.0-burdi64 #1 SMP PREEMPT Mon Jul 3 11:28:06 CEST 2017 x86_64 Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz GenuineIntel GNU/Linux
root@riposo:/boot# mkinitrd -c -m sd_mod:ahci:ext4 -o /boot/initrd.gz-%KVER% -k 4.12.1-burdi64
OK: /lib/modules/4.12.1-burdi64/kernel/drivers/scsi/sd_mod.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/drivers/ata/libata.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/drivers/ata/libahci.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/drivers/ata/ahci.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/fs/mbcache.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/fs/crypto/fscrypto.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/lib/crc16.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/fs/ext4/ext4.ko added.
43940 blocks
/boot/initrd.gz-4.12.0-burdi64 created.
Be sure to run lilo again if you use it.
root@riposo:/boot#
which overwrote my current initrd instead of creating the new 4.12.1 one.
And now with kernel 4.12.0 as well as 4.12.1 I have a hang / timeout at glib-compile-schemas. I am not sure how this relates to the above symptoms though ...
Running the 4.12.0 kernel I just built the 4.12.1 one:
Code:
root@riposo:/boot# uname -a
Linux riposo 4.12.0-burdi64 #1 SMP PREEMPT Mon Jul 3 11:28:06 CEST 2017 x86_64 Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz GenuineIntel GNU/Linux
root@riposo:/boot# mkinitrd -c -m sd_mod:ahci:ext4 -o /boot/initrd.gz-%KVER% -k 4.12.1-burdi64
OK: /lib/modules/4.12.1-burdi64/kernel/drivers/scsi/sd_mod.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/drivers/ata/libata.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/drivers/ata/libahci.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/drivers/ata/ahci.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/fs/mbcache.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/fs/crypto/fscrypto.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/lib/crc16.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/fs/ext4/ext4.ko added.
43940 blocks
/boot/initrd.gz-4.12.0-burdi64 created.
Be sure to run lilo again if you use it.
root@riposo:/boot#
which overwrote my current initrd instead of creating the new 4.12.1 one.
And now with kernel 4.12.0 as well as 4.12.1 I have a hang / timeout at glib-compile-schemas. I am not sure how this relates to the above symptoms though ...
You found a bug in the patch I sent for mkinitrd. Sorry. In fact that's because -k is passed after -o, therefore, %KVER% is replaced by the current kernel version.
Here is a patch to fix that :
Code:
--- mkinitrd.orig 2017-07-13 19:56:42.168034365 +0200
+++ mkinitrd 2017-07-13 20:18:48.412093542 +0200
@@ -364,7 +364,7 @@
;;
-o)
# canonicalize filename:
- OUTPUT_IMAGE="$(readlink -m $(normalize_string $2))"
+ OUTPUT_IMAGE="$(readlink -m $2)"
shift 2
;;
-r)
@@ -429,6 +429,19 @@
esac
done
+# Resolve TAGS (i.e %KVER%, %SLACKVER%) found in OUTPUT_IMAGE.
+#
+# Note:
+# ----
+# This must be done after all options have been handled and
+# not when handling case '-o' because -k can be passed after
+# -o in which case, the tag %KVER% would be replaced with the
+# current kernel version instead of version passed with -k.
+#
+if echo "$OUTPUT_IMAGE" | grep -qE "%KVER%|%SLACKVER%" ; then
+ OUTPUT_IMAGE="$(normalize_string $OUTPUT_IMAGE)"
+fi
+
# If kernel modules are needed but the kernel version is absent, exit now:
if [ ! -d /lib/modules/$KERNEL_VERSION ]; then
echo "ERROR: No /lib/modules/$KERNEL_VERSION kernel modules tree found for kernel \"$KERNEL_VERSION\""
Example :
Code:
$ mkinitrd -c -m sd_mod:ahci:ext4 -o ./initrd-%KVER%.gz -k 4.12.1-burdi64
OK: /lib/modules/4.12.1-burdi64/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/fs/mbcache.ko added.
OK: /lib/modules/4.12.1-burdi64/kernel/fs/ext4/ext4.ko added.
35967 blocks
/tmp/mkinitrd/initrd-4.12.1-burdi64.gz created.
Be sure to run lilo again if you use it.
--
SeB
Last edited by phenixia2003; 07-13-2017 at 01:28 PM.
Bug 100242 - radeon buffer allocation failure during startup of Factorio
Bug 101657 - strtod.c:32:10: fatal error: xlocale.h: No such file or directory
Bug 101666 - bitfieldExtract is marked as a built-in function on OpenGL ES 3.0, but was added in OpenGL ES 3.1
Bug 101703 - No stencil buffer allocated when requested by GLUT
You found a bug in the patch I sent for mkinitrd. Sorry. In fact that's because -k is passed after -o, therefore, %KVER% is replaced by the current kernel version. Here is a patch to fix that...
Code:
... patch ...
Thanks for your work on this - it's much appreciated here!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.