(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 29 Oct 2020, 03:16
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to change menu.lst of GRUB?(bionicpup32)[solved]
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
mr-kumar-abhishek


Joined: 01 Oct 2019
Posts: 38

PostPosted: Tue 01 Oct 2019, 11:25    Post subject:  How to change menu.lst of GRUB?(bionicpup32)[solved]
Subject description: Remastring bionicpup32
 

I have been trying to remaster bionicpup32, however I am unable to change the menu.lst file during remastering. Could some tell me at which step I should change the menu.lst file so that it could be copied into my remastered version of the puppy linux ?

The remastering setup only gives me option to customize /root and /etc files how can I change files which are used during boot such as fsckme.flg menu.lst and menu_phelp.lst ?

Last edited by mr-kumar-abhishek on Thu 03 Oct 2019, 03:42; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
mikeslr


Joined: 16 Jun 2008
Posts: 3913
Location: 500 seconds from Sol

PostPosted: Tue 01 Oct 2019, 15:16    Post subject:  

You can't. Remastering only changes the contents of the Puppy_version.sfs. Not the boot-loader.

menu.lst is a file generated by grub4dos if grub4dos is used as the boot-loader. To change what grub4dos writes by default you'd have to edit grub4dos.
Back to top
View user's profile Send private message 
williams2

Joined: 14 Dec 2018
Posts: 337

PostPosted: Tue 01 Oct 2019, 17:30    Post subject:  

You can search for .lst files
Code:
# find /usr/ -name *.lst
/usr/share/g4dos/pcd/menu.lst
/usr/share/g4dos/pcd/menu_phelp.lst
#

or use pfind to search in the system files.

The files in /usr/share/g4dos/pcd/ might be what you want,

Often, a remaster script will stop and allow you to make changes to the file system before it creates the new sfs file.

If your remaster script does not let you make changes
or if it really only saves changes in /etc and /root
you could try a different remaster script.

Or you could save your .lst files somewhere that will be saved in the .sfs,
like /root/.config/kumar and copy them when Puppy boots.
You could add a line like this to /etc/rc.d/rc.local
Code:
cp /root/.config/kumar/*.lst  /usr/share/g4dos/pcd/

or to a script in /root/Startup
Back to top
View user's profile Send private message 
mr-kumar-abhishek


Joined: 01 Oct 2019
Posts: 38

PostPosted: Wed 02 Oct 2019, 00:30    Post subject: DISTRO_DESC and #distrodesc#
Subject description: another small question
 

williams2 wrote:

The files in /usr/share/g4dos/pcd/ might be what you want,


Thanks a lot for this info !!!

From this I was also able to find

1) /usr/share/boot-dialog/isolinux.cfg
2) /usr/share/boot-dialog/grub.cfg

I have another small question though, where are the DISTRO_DESC and #distrodesc# are defined which are used in these files ?
Back to top
View user's profile Send private message Visit poster's website 
mr-kumar-abhishek


Joined: 01 Oct 2019
Posts: 38

PostPosted: Wed 02 Oct 2019, 00:47    Post subject: Re: DISTRO_DESC and #distrodesc#
Subject description: another small question
 

mr-kumar-abhishek wrote:

I have another small question though, where are the DISTRO_DESC and #distrodesc# are defined which are used in these files ?


If I am correct these are defined in /etc/DISTRO_SPECS , correct?
Back to top
View user's profile Send private message Visit poster's website 
williams2

Joined: 14 Dec 2018
Posts: 337

PostPosted: Wed 02 Oct 2019, 01:51    Post subject:  

Yes, scripts like /usr/bin/uefi-usb-installer seem to read
the data in /etc/DISTRO_SPECS and /etc/rc.d/PUPSTATE
and substitute that data wherever it sees
"DISTRO_DESC" in the .cfg and .lst files.
Back to top
View user's profile Send private message 
mr-kumar-abhishek


Joined: 01 Oct 2019
Posts: 38

PostPosted: Thu 03 Oct 2019, 03:40    Post subject: Thanks a lot I am this solved my problem
Subject description: Problem Solved
 

Thanks a lot this solved my problem Smile
Back to top
View user's profile Send private message Visit poster's website 
01101001b


Joined: 08 Mar 2017
Posts: 124
Location: Buenos Aires, Argentina

PostPosted: Wed 01 Jan 2020, 23:55    Post subject:  

williams2 wrote:
The files in /usr/share/g4dos/pcd/ might be what you want

This is pure gold! Thank you!

I had a related problem. My system is in sda1 and I maintain a booteable backup of the former in sda4. I used to boot from one or the other without a hitch, until something "weird" happened: Every time I booted from the backup, the right partition was mounted but the backup system now accessed to the *main* savefile (correct operation used to be: backup system accessed to *backup* savefile).

As I said earlier, the only working solution I found was in those files you mentioned. Thanks again williams2!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1001s ][ Queries: 11 (0.0107s) ][ GZIP on ]