Ticket #102: openvz.diff

File openvz.diff, 0 bytes (added by roy, 2 years ago)

Allow OpenVZ to mount /sys and /dev

  • sh/init.sh.Linux.in

    diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in
    index 5aa5031..63b263a 100644
    a b if [ -r /sbin/livecd-functions.sh ]; then 
    108108fi 
    109109 
    110110if [ "${RC_UNAME}" != "GNU/kFreeBSD" \ 
    111         -a "${RC_SYS}" != "VSERVER" \ 
    112         -a "${RC_SYS}" != "OPENVZ" ] 
     111        -a "${RC_SYS}" != "VSERVER" ]; 
    113112then 
    114113        if grep -Eq "[[:space:]]+sysfs$" /proc/filesystems; then 
    115114                if [ -d /sys ]; then 
    then 
    126125        fi 
    127126fi 
    128127 
     128# Default OpenVZ to static devices 
     129if [ "${RC_SYS}" = "OPENVZ" ]; then 
     130        rc_devices=${rc_devices:-static} 
     131fi 
     132 
    129133# Try to figure out how the user wants /dev handled 
    130134if [ "${rc_devices}" = "static" \ 
    131135        -o "${RC_SYS}" = "VSERVER" \ 
    132         -o "${RC_SYS}" = "OPENVZ" \ 
    133136        -o "${RC_UNAME}" = "GNU/kFreeBSD" ] 
    134137then 
    135138        ebegin "Using existing device nodes in /dev"