add missing restorecon ops

This commit is contained in:
Louis Abel 2022-09-12 00:08:42 -07:00
parent 089e5afd35
commit bdd0c84fdb
Signed by: label
GPG Key ID: B37E62D143879B36
6 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,7 @@ part / --size 7168
%post
# mate configuration
cat >> /etc/rc.d/init.d/livesys << EOF
# make the installer show up
if [ -f /usr/share/applications/liveinst.desktop ]; then
# Show harddisk install in shell dash
@ -49,6 +50,8 @@ rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop
# reset selinux contexts
chown -R liveuser:liveuser /home/liveuser/
restorecon -R /home/liveuser/
restorecon -R /
EOF
# this doesn't come up automatically. not sure why.

View File

@ -82,6 +82,7 @@ mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.des
# this goes at the end after all other changes.
chown -R liveuser:liveuser /home/liveuser
restorecon -R /home/liveuser
restorecon -R /
EOF

View File

@ -9,6 +9,7 @@ part / --size 7168
%post
# mate configuration
cat >> /etc/rc.d/init.d/livesys << EOF
# make the installer show up
if [ -f /usr/share/applications/liveinst.desktop ]; then
# Show harddisk install in shell dash
@ -49,6 +50,8 @@ rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop
# reset selinux contexts
chown -R liveuser:liveuser /home/liveuser/
restorecon -R /home/liveuser/
restorecon -R /
EOF
# this doesn't come up automatically. not sure why.

View File

@ -82,6 +82,7 @@ mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.des
# this goes at the end after all other changes.
chown -R liveuser:liveuser /home/liveuser
restorecon -R /home/liveuser
restorecon -R /
EOF

View File

@ -9,6 +9,7 @@ part / --size 7168
%post
# mate configuration
cat >> /etc/rc.d/init.d/livesys << EOF
# make the installer show up
if [ -f /usr/share/applications/liveinst.desktop ]; then
# Show harddisk install in shell dash
@ -49,6 +50,8 @@ rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop
# reset selinux contexts
chown -R liveuser:liveuser /home/liveuser/
restorecon -R /home/liveuser/
restorecon -R /
EOF
# this doesn't come up automatically. not sure why.

View File

@ -82,6 +82,7 @@ mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.des
# this goes at the end after all other changes.
chown -R liveuser:liveuser /home/liveuser
restorecon -R /home/liveuser
restorecon -R /
EOF