This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3352: Yocto Morty filesystem questions

Part Number: AM3352

Tool/software: Linux

I am having custom board which is powered by AM335x processor.

Previously we were using Yocto Dylan based file system (It uses systemV init scripts)

Recently I have build file system for Yocto Morty version (It is using systemd service)

I have build yocto morty based root file with the help of  link http://arago-project.org/wiki/index.php?title=Setting_Up_Build_Environment&oldid=1663

I am quite new to systemd. But further reading on internet I come to know that systemd can run systemV scripts.

We have copied our custom scripts in /etc.init.d/ folder and made appropriate link SXX... links from /etc/rc5.d folder.

and our custom scripts are running fine.

On further research I come to know that systemV scripts converted into equivalent systemd scripts (/run/systemd/generator.late)

My questions are

In yocto Morty generated root file system.

1) I can able see directories /etc/rc1.d,  /etc/rc2.d,  /etc/rc3.d,  /etc/rc4.d,etc. When those scripts (generated equivalent services) will be executed for given runlevel?

2) In /etc/rc5.d directory  there are S01networking, S02dbus-1, S09sshd etc. scripts are available. I  think default /etc/rc5.d/SXX scripts are not even running, only our custom scripts are running. But respective original systemd services are executing. Can you please give more information on it

3) In arago distro there is one flag ARAGO_SYSVINIT in sources/meta-arago/meta-arago-distro/conf/distro/arago.conf file what is the use of this flag?

  • Hello Pratik,

    Pratik Pawar37 said:
    1) I can able see directories /etc/rc1.d,  /etc/rc2.d,  /etc/rc3.d,  /etc/rc4.d,etc. When those scripts (generated equivalent services) will be executed for given runlevel?

    SystemD has a SystemV scripts backward comparability wrapper which will run those scripts after basic.target. Please, check the systemd-sysv-generator for more details.


    Pratik Pawar37 said:
    2) In /etc/rc5.d directory  there are S01networking, S02dbus-1, S09sshd etc. scripts are available. I  think default /etc/rc5.d/SXX scripts are not even running, only our custom scripts are running. But respective original systemd services are executing. Can you please give more information on it

    Some scripts are running, some of them are masked (redirected to /dev/null) and not running. See ls -al /etc/systemd/system/ and check systemctl for more details.


    Pratik Pawar37 said:
    3) In arago distro there is one flag ARAGO_SYSVINIT in sources/meta-arago/meta-arago-distro/conf/distro/arago.conf file what is the use of this flag?

    If you set ARAGO_SYSVINIT to 1 you will have SystemV service manager instead of SystemD in your build.


    Best regards,
    Kemal