Solved - Re: 'Permission denied' running %pre script in kickstart (f28)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2018-10-16 4:08 a.m., Digimer wrote:
> Hi all, I have a kickstart script for installing Fedora 28 that has a
> somewhat large %pre script. When anaconda tries to run it, it fails;
> 
> ====
> Oct 16 07:38:55 localhost org.fedoraproject.Anaconda.Boss[1704]:
> INFO:anaconda.modules.boss.module_manager:All modules are ready now.
> Oct 16 07:38:55 localhost anaconda[1641]: anaconda: kickstart.script:
> Running kickstart %%pre script(s)
> Oct 16 07:38:55 localhost anaconda[1641]: anaconda: stdout: Running
> pre-installation scripts
> Oct 16 07:38:55 localhost anaconda[1641]: program: Running...
> /tmp/ks-script-e3w92zo7
> Oct 16 07:38:55 localhost anaconda[1641]: program: Error running :
> Permission denied
> Oct 16 07:38:55 localhost anaconda[1641]: program: Running... chvt 1
> Oct 16 07:38:55 localhost anaconda[1641]: program: Return code: 0
> Oct 16 07:38:55 localhost dbus-daemon[1704]: Reloaded configuration
> ====
> 
> The script itself, when run manually, succeeds;
> 
> ====
> [anaconda root@localhost tmp]# /tmp/ks-script-e3w92zo7
> Finding install drive for a Striker dashboard.
> Analyzing platter drive: [/dev/vda], using the transport: [], of the
> size: [21474836480 (20.00 GiB)]
> Selected the largest disk: [/dev/vda], which has a capacity of: [20.00 GiB]
> Writing out the partition plan to: [/tmp/plan_partitions.out]
> Completed successfully, exiting.
> ====
> 
> This sounded like an SELinux denial, so I set 'selinux --permissive' to
> debug, and it still gets the same error;
> 
> ====
> [anaconda root@localhost ~]# sestatus
> SELinux status:                 enabled
> SELinuxfs mount:                /sys/fs/selinux
> SELinux root directory:         /etc/selinux
> Loaded policy name:             targeted
> Current mode:                   permissive
> Mode from config file:          error (Success)
> Policy MLS status:              enabled
> Policy deny_unknown status:     allowed
> Memory protection checking:     requested (insecure)
> Max kernel policy version:      31
> ====
> 
> Any thoughts on debugging?
> 
> digimer
> 
> More details;
> 
> ==== Source kickstart script
> $ fpaste pxe/kickstart/striker.ks
> Uploading (12.4KiB)...
> https://paste.fedoraproject.org/paste/oA96KVWZy227maIFQbkYOA
> ====
> 
> ==== Anaconda log pre-failure
> # fpaste anaconda.log
> Uploading (0.8KiB)...
> https://paste.fedoraproject.org/paste/CWy-Xjv6rCKEea42RvZm6Q
> ====
> 
> ==== The %pre script that fails when anaconda calls it, but works when
> called from tty2
> # fpaste ks-script-e3w92zo7
> Uploading (10.3KiB)...
> https://paste.fedoraproject.org/paste/10dAZiJUpFdnV9FqHBQ40g
> ====
> 
> ==== syslog of install attempt
> # fpaste syslog
> Uploading (1301.5KiB)...
> https://paste.fedoraproject.org/paste/-RMntdsuc9cqTDGuEBA7EA
> ====

I set: '%pre --interpreter=#!/bin/perl'. The '#!' was obviously a
mistake, though I'm not sure why it was presented as a permissions
issue. Anywho, this reply is for the archives. :)

-- 
Digimer
Papers and Projects: https://alteeve.com/w/
"I am, somehow, less interested in the weight and convolutions of
Einstein’s brain than in the near certainty that people of equal talent
have lived and died in cotton fields and sweatshops." - Stephen Jay Gould
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux