Changeset 3293 in MondoRescue for branches/3.2/mindi/rootfs/etc/init.d/rcS


Ignore:
Timestamp:
May 27, 2014, 5:53:16 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Fix mount call in rcS to use devtmpfs instead of tmpfs for /dev and systemd
  • Changing how logging is done in mindi to support being called by mondo AND printing percentage progress in UI
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/rootfs/etc/init.d/rcS

    r3286 r3293  
    383383    mv /dev /dev.static
    384384    mkdir /dev
    385     mount -n -o size=5M,mode=0755 -t tmpfs none /dev
    386     MakeExtraNodes
    387     mount -n -t devpts -o mode=620 none /dev/pts
     385    # Contributed during LinuxCon Japan !
     386    if [ -x /usr/lib/systemd/systemd-udevd ]; then
     387        mount -n -t devtmpfs none /dev
     388    else
     389        mount -n -o size=5M,mode=0755 -t tmpfs none /dev
     390        MakeExtraNodes
     391        mount -n -t devpts -o mode=620 none /dev/pts
     392    fi
    388393    mount -n -t tmpfs  none /dev/shm
    389394    if [ -e /proc/sys/kernel/hotplug ]; then
     
    410415            # from https://github.com/hut/minirc/blob/master/rc
    411416            echo "INFO: This is the systemd version of udev"
    412             mkdir -p /run/systemd/journal
    413             mount -n -t tmpfs tmpfs /sys/fs/cgroup
     417            # Contributed during LinuxCon Japan
     418            #mkdir -p /run/systemd/journal
     419            #mount -n -t tmpfs tmpfs /sys/fs/cgroup
    414420            #mount -n -t cgroup cgroup /sys/fs/cgroup/systemd
    415421            /usr/lib/systemd/systemd-udevd --daemon
Note: See TracChangeset for help on using the changeset viewer.