Skip to content

Instantly share code, notes, and snippets.

@serrasqueiro
Last active December 6, 2025 14:19
Show Gist options
  • Select an option

  • Save serrasqueiro/39f993cfffee68780842e76e01678533 to your computer and use it in GitHub Desktop.

Select an option

Save serrasqueiro/39f993cfffee68780842e76e01678533 to your computer and use it in GitHub Desktop.
damn openSUSE Armor!

Hints about after-local.service

Adding that:

myopenSUSEhost:~ # more /etc/init.d/after.local
#! /bin/sh
#
# Copyright (c) 2010 SuSE LINUX Products GmbH, Germany.  All rights reserved.
#
# Author: Werner Fink, 2010
#
# /etc/init.d/after.local
#
# script with local commands to be executed from init after all scripts
# of a runlevel have been executed.
#
# Here you should add things, that should happen directly after
# runlevel has been reached.
#

mkdir -p /var/run/cvs/lock ; chmod 1777 /var/run/cvs/lock
###systemctl start ntpd | tee /var/run/startup_myself.log
echo "Starting vbox shared folders: $(date)" >> /var/run/startup_myself.log
/usr/local/sbin/mount_shared.sh >> /var/run/startup_myself.log
echo "mount_shared.sh result: $?" >> /var/run/startup_myself.log

You should see systemctl list-unit-files --type=service after-local.service as:

  • static ...and:
  • generated, with no PRESET for both.
  529  2025-12-06 14:08:46 cd /usr/local/sbin/
  530  2025-12-06 14:08:46 d
  531  2025-12-06 14:08:51 ls -Z *sh
  532  2025-12-06 14:09:24 chcon --type=bin_t /usr/local/sbin/mount_shared.sh
  533  2025-12-06 14:09:26 ls -Z *sh
  534  2025-12-06 14:09:44 semanage fcontext -a -t bin_t "/usr/local/sbin/mount_shared.sh"
  535  2025-12-06 14:09:46 restorecon -v /usr/local/sbin/mount_shared.sh
  536  2025-12-06 14:10:06 ls -Z *sh
  537  2025-12-06 14:10:12 ls -Z `pwd`/*sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment