View unanswered posts | View active topics It is currently Sat May 18, 2013 1:38 pm



Reply to topic  [ 2 posts ] 
 Small changes needed to run smoothless on a SuSE 11.1 system 
Author Message

Joined: Fri Apr 17, 2009 12:52 pm
Posts: 1
Post Small changes needed to run smoothless on a SuSE 11.1 system
Hello,

I run into a few small problems generating a customized install usb stick/cd with your script. They are of the minor type and I don't know, if they are special to SuSE systems, but I think they are general enough to put them into the script.
  • Under SuSE, at least, fdisk was not found in the path. I had to add /sbin to the end of the path to make the fdisk statements work. Maybe it would not harm to add /usr/sbin too.
  • At the end you have a chown statement to change all the created files back to the owner:
    Code:
    chown -R --from=$USER:$USER $SUDO_USER:$SUDO_USER $ipath/*
    This produced an error message running it, because there is no group that refers to $SUDO_USER. When I changed this to $SUDO_UID:$SUDO_GID the script did not complain any more.
I hope this helps you make your script run on more Linux versions, that it probably already does.

Regards, Dieter


Sat May 09, 2009 3:22 pm
Profile

Joined: Wed Mar 18, 2009 1:32 pm
Posts: 451
Location: Sweden
Post Re: Small changes needed to run smoothless on a SuSE 11.1 system
Hello, thanks for testing the script on SuSE,

With adding /sbin to the path you mean to the "global system" path and not the script ?
It sound strange that it's not in it from the start.

If /sbin /usr/sbin not in the path you can't run any command in
the dirs if you don't specify the absolute path when you run the command.

Ya your right I changed $SUDO_USER to SUDO_UID:SUDO_GID

_________________
Dovie'andi se tovya sagain,



Sat May 09, 2009 5:21 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.