sonic-buildimage/files/initramfs-tools/union-mount
2016-03-08 11:42:20 -08:00

14 lines
345 B
Bash

#!/bin/sh -e
case $1 in
prereqs)
exit 0
;;
esac
mkdir -p ${rootmnt}/host/rw
mount -n -o dirs=${rootmnt}/host/rw:${rootmnt}=ro -t aufs root-aufs ${rootmnt}
mount ${ROOT} ${rootmnt}/host
mkdir -p /root/var/lib/docker
mount --bind /root/host/var/lib/docker /root/var/lib/docker
mkdir -p /root/boot
mount --bind /root/host/boot /root/boot