Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
  #1  
Old 27th February 2012, 01:37 PM
heethen Offline
Registered User
 
Join Date: Feb 2012
Location: CR
Posts: 3
linuxchrome
Custom spin rc.local startup problem

Hello,
I'm making my own customized Fedora livecd (as a part of my dissertation) using livecd-tools. I've managed to get a quite a bit of work done, but now I'm stuck. I've copied a script called iptables.sh on the livecd like this (code from the kickstart file):

Code:
%post --nochroot
cp /home/heethen/iptables.sh $INSTALL_ROOT/usr/sbin/iptables.sh
%end
That works fine, the file is copied. But I need to execute this script everytime the livecd boots. So I've created the rc.local file using the kickstart:

Code:
cat >> /etc/rc.d/rc.local << FOE
#!/bin/sh

/usr/sbin/iptables.sh

exit 0
FOE

chmod +x /etc/rc.d/rc.local
chmod +x /usr/sbin/iptables.sh
The rc.local is sucessfully created, but it isn't being run on startup. What am I doing wrong?

Any help would be greatly appreciated. Please tell me if any further information needs to be provided. Thank you.

P.S.I've even tried to create systemd service file /etc/systemd/system/iptabservice.service that executes my script ExecStart=/usr/sbin/iptables.sh - to no avail.)
Reply With Quote
 

Tags
custom, problem, rc.local, rclocal, spin, startup, systemd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a spin with custom system settings aurabindo Installation, Upgrades and Live Media 11 11th January 2012 01:26 AM
Nautilus does not show network computers (custom spin) PryGuy Servers & Networking 0 1st August 2010 01:13 PM
Custom spin from current install KoenHofmeester Fedora Spins & Remixes 18 22nd October 2009 11:59 AM
Making a custom spin, Fedora 9 Live CD?? knadoor Using Fedora 6 9th June 2008 04:08 AM
Creating a custom spin eXDee Using Fedora 0 8th June 2008 12:57 AM


Current GMT-time: 11:26 (Saturday, 23-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat