#!/bin/sh

# Sony's init intercept the init process and do a number of things which breaks
# all sort of things we prepared for 2nd-stage init. I can't think of other way
# than to just bypass it completely.

if [ -e "${LXC_ROOTFS_PATH}/init.real" ]; then
    rm -f "${LXC_ROOTFS_PATH}/init"
    mv "${LXC_ROOTFS_PATH}/init.real" "${LXC_ROOTFS_PATH}/init"
fi
