Poor man's graphical boot in Slackware revisited...
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.
This looks incorrect to me:
Code:
if (( OUT_S != OUT_S_CHECK ));then
echo "OUT_S=$OUT_S_CHECK" > /boot/GSplash/output.conf.temp
fi
Shouldn't it be:
Code:
if (( $OUT_S != $OUT_S_CHECK ));then
echo "OUT_S=$OUT_S_CHECK" > /boot/GSplash/output.conf.temp
fi
Tried this but it doesn't change anything. It still says Init ID X1: respawning too fast: disabling for 5 minutes.
The thing is when I modify the inittab to use wrapper scripts, after that while rebooting I get an output on screen, something as 'ioctl error:' and then in the end it says, now using script rc.6: and then system starts showing shutdown messages.
@lumak: I use bash only and haven't changed anything to use a different shell in any case. And the code thing is something I cannot understand, so I can just give it(new code) a try! but where and in which do I need to inser that line you mentioned?
Click here to see the post LQ members have rated as the most helpful post in this thread.
Ah, lumak is right of course -I haven't looked at the attachments provided in order to understand what was going on. It just looked funny to me 'cause I know that syntax is 'foreign' to the standard Slack init scripts. I would suggest that instead of trying to 'wrap' the standard scipts, that you simply alter the existing scripts to do what you want and offer them that way. That will make things both easier for you, and more transparent to potential users.
I have scripts which I modified for use with bootsplash -even with animation in them at both startup and shutdown. It's a lot cleaner to just write in the extra lines needed in copies of the originals. I do have some code (functions) in a separate file which get sourced -again that keeps things cleaner and easier to carry your mods forward when the init scripts get changed, which is not often.
ok, I've stumbled upon something which could be the cause(I think..) does it matter if I use huge kernel instead of generic one? I made initrd-tree after reading in the article(wiki), and I am currently not able to boot with generic kernel(some raid issue, and I don't have raid!), hence am unable to test wrapper scripts to conclude...
Alright guys I've decided to give this one more go as I am missing boot-screen.
I am now able to boot with generic kernel w/o any problem. I can test the ppm images successfully with command:
/boot/initrd-tree/bin/busybox fbsplash -s /home/kapz/Pictures/shutsplash.ppm. This means busybox is present.
Now after creating wrapper scripts and modifying inittab to use wrapper scripts the system hangs at boot time at the same message:
init X: respawning too fast disabling it for 5 minutes....and now if I press ctl+alt+del I get a message in 'green text' saying:
/ect/rc.6 line 49: /boot/initrd-tree/bin/busybox no such file or directory ..(!!??!)
/etc/rc.6 line51: /boot/GSplash/fifo no such file or directory (but it is, please refer attached screenshot)
*Edit* It also says that there is nothing left in the run level to do anymore, and I have to hard reboot *Edit*
[weird] If I boot with live dvd and mount my root in /mnt, I can't see /boot/initrd-tree/bin/busybox! but can see /boot/fbfifo[/weird]
Also this one time I saw the image and progressbar while shutting down, but it again hung while booting.
Last thing, the /boot/GSplash/fbfifo looks like /boot/GSplash/fbfifo| (refer screenshot)
*Edit* Never mind I tried the above line and it still slags at boot..
The message I get is: init: ID "x1" respawning too fast: disabled for 5 minutes...
and then the same thing happens....Am I missing any package or library required by the wrapper script?
Either that or there might be something in rc.M-Wrap that's causing problem...coz I tried booting with all wrapper enabled except rc.S-Wrap and the system booted and freezed at going multiuser... thats it, stays there, however here the ctl alt del works and system reboots normally...
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
Glad to see you around. Better still you are using slackware ).
Well as far as /boot being a different partition is concerned it should not be an issue (else you would not be able to even boot).
-vaibhav-
Hey there mate! it's been long! you hav deb logo on your FB account? if yes then I'll add you.
well am asking coz I dont know why it won't find the thing that exists on the same place..it says not found when screenshot clearly shows that it's there!
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
Yup the debian icon on FB is me - please add me. As far as the issue is concerned - well it is 4 pages long and I did not read all of it apart from your post that said graphical bootup is for wimps .
BTW:- Did you know that we have documents for linux called linux documentation project. It may have something for you.
I still am a die hard fan of debian and so I am not sure how you can get this configured in slackware.
"freezed at going multiuser" -this means there is a problem in /etc/rc.d/rc.M
Sorry I can't be more helpful -the use of wrappers to the normal scripts complicates things considerably. Here's a thought though: rc.S explicitly calls rc.M, so if you are supposed to be using an rc.M wrapper, then rc.S would need to call that explicitly instead of the real rc.M.
If it were me, I'd try to get it all working by modifying the normal startup scripts. You'd want to back them up to be able to restore them after any upgrades to the sysvinit-scripts package, though.
I have a working bootsplash, including animations, but that is with the real bootsplash with patched kernel and directly modded init scripts. So my system wouldn't work directly for you.
Another thing I'd look at is to make sure that /boot is not mounted separately. If /boot is a separate partition it will not be mounted when the init scripts start running -that only happens once the 'mount -a ...' command is run (about halfway through rc.S). If you are using a separate boot partition and want to keep it that way, then you'll need to copy all programs you are calling (busybox, fbsplash, etc) into either /bin or /sbin so that they are available when just / is mounted.
"freezed at going multiuser" -this means there is a problem in /etc/rc.d/rc.M
Problem only when wrapper is used, else all works as expected.
Quote:
Here's a thought though: rc.S explicitly calls rc.M, so if you are supposed to be using an rc.M wrapper, then rc.S would need to call that explicitly instead of the real rc.M.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Original Poster
Rep:
Quote:
Originally Posted by gnashley
... Here's a thought though: rc.S explicitly calls rc.M, so if you are supposed to be using an rc.M wrapper, then rc.S would need to call that explicitly instead of the real rc.M...
rc.S does not call rc.M explicitly at least not in my rc.S script rc.M is called from inittab hence changing the innitab to call rc.M-Wrap
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.