View previous topic :: View next topic |
Author |
Message |
gustavoc Junior Member
Joined: 13 Feb 2011 Posts: 3
|
Posted: Thu Feb 17, 2011 2:10 am Post subject: Disabling services in live usb |
|
|
Hi all,
I'm new to the list, I've been using Slackware since 10.2 and recently I started a project to set up a minimal linux and found SMS.
I want to modify the live version to only start the services I need. To do that I did the following (summarized..)
lzm2dir etc.lzm
chmod -x etc/rc.d/rc.script_unwanted
dir2lzm etc/ etc.lzm
replace original etc.lzm with modified one
boot live from usb
and fail...
It seems that the boot process couldn't build the etc directory on the tree and the process stops because no inittab file was found
I also replaced the edited file with an original copy from the iso and no success, the only way to boot the system is installing the entire iso again on the pendrive.
Thanks in advance! _________________ Gustavo
Patagonia
Argentina |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Thu Feb 17, 2011 6:31 am Post subject: |
|
|
It's quite easy just navigate to sms/base and do
Code: | mkdir tmp
lzm2dir etc.lzm tmp/
chmod -x tmp/etc/rc.d/{rc.samba,rc.hylafax}
dir2lzm tmp/ z_disabled_services.lzm
rm -r tmp |
And you are ready.
If you disable hylafax you need also to do
sed -e 's/d1:12345:respawn:/#d1:12345:respawn:/g' -i tmp/etc/inittab
and remove the cron jobs from /tmp/etc/cron.*
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
gustavoc Junior Member
Joined: 13 Feb 2011 Posts: 3
|
Posted: Thu Feb 17, 2011 2:52 pm Post subject: |
|
|
Hi gerasimos_h,
Many thanks for your help, this time worked fine.
My error was that I replaced the original etc.lzm file, instead of creating a new one that overwrites the etc/ contents with the modified files.
I'm sure we'll be in touch soon.
Thanks again! _________________ Gustavo
Patagonia
Argentina |
|
Back to top |
|
|