Invoking smart during anaconda kickstart, anyone got this working ?

Asked by pete99

QU: What's the most central place in the smart source, where I can insert printed debugging statements, in order to trace where smart is hanging when I run:
smart channel -y --remove-all
?

Networking, DNS name resolution and NFS mounting are all working fine prior to running these smart commands.
I know these are working because files are retrieved from NFS mounts prior to this above smart command, and I've confirmed those files are copied successfully before the smart commands are run.

###

I'm trying to setup my smart channels during the anaconda kickstart automated installation of several new linux computers. And I'm then using smart to finish off the installation.

But once fedora base packages, including all the smart components, are installed, then all attempts to run any smart commands results in the smart process locking up.

If I move the entire anaconda kickstart "%post" scripted actions to occur after reboot, they all work perfectly.
This is my current workaround, but I need to move on.
I want to either fix smart, or find out what I'm doing wrong, not continue working around the problem.
Hence my question - see above.

###

Here's what works after reboot, but locks up under anaconda's kickstart:

smart channel -y --remove-all
smart channel -y --add /etc/smart/channels/redhat-fedora-everything.channel
smart channel -y --add /etc/smart/channels/redhat-fedora-updates.channel
smart channel -y --add /etc/smart/channels/livna-fedora.channel
smart channel -y --add /etc/smart/channels/rpmfusion-fedora-everything-free.channel
smart channel -y --add /etc/smart/channels/rpmfusion-fedora-everything-nonfree.channel
smart channel -y --add /etc/smart/channels/rpmfusion-fedora-updates-free.channel
smart channel -y --add /etc/smart/channels/rpmfusion-fedora-updates-nonfree.channel
smart update
smart upgrade -y

###

Any help is greatly appreciated. Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Smart Package Manager Edit question
Assignee:
No assignee Edit question
Solved by:
pete99
Solved:
Last query:
Last reply:
Revision history for this message
pete99 (peterg-perme8) said :
#1

When I say smart commandline works after a reboot, I forgot to mention that smart only works after a reboot when the above commands are run interactively from a shell.

Even after a reboot, if I try to run smart from an rc.local startup script, then smart fails.

Revision history for this message
pete99 (peterg-perme8) said :
#2

Finally worked it out.

I have to execute anaconda's kickstart with the option noselinux.

Ie: when the kickstart installation flash disk or DVD runs, at the "boot: prompt I enter:
linux noselinux ks=<kickstart ks options>

This prevents selinux trying to impose its restrictions on smart's files. I'm not sure what it is about selinux permissions and smart which causes the failure, so don't ask me.

This is fine for me because I always install linux so that there's no selinux (everything runs as root).

Revision history for this message
Anders F Björklund (afb) said :
#3

This might be a packaging bug. But see https://bugs.launchpad.net/smart/+bug/245984