diff --git a/xCAT-server/share/xcat/netboot/fedora/dracut_009/xcatroot b/xCAT-server/share/xcat/netboot/fedora/dracut_009/xcatroot index 5bed21474..7811cf0fb 100755 --- a/xCAT-server/share/xcat/netboot/fedora/dracut_009/xcatroot +++ b/xCAT-server/share/xcat/netboot/fedora/dracut_009/xcatroot @@ -52,12 +52,11 @@ if [ -r /rootimg.sfs ]; then mkdir -p /rw mount -t squashfs /rootimg.sfs /ro mount -t tmpfs rw /rw - modinfo overlay + modprobe overlay if [ $? -eq 0 ]; then echo "Mounting $NEWROOT with type overlay" mkdir -p /rw/upper mkdir -p /rw/work - modprobe overlay mount -t overlay -o lowerdir=/ro,upperdir=/rw/upper,workdir=/rw/work mergedroot $NEWROOT else echo "Mounting $NEWROOT with type aufs" diff --git a/xCAT-server/share/xcat/netboot/rh/dracut/xcatroot b/xCAT-server/share/xcat/netboot/rh/dracut/xcatroot index c3c469902..423ab6d36 100755 --- a/xCAT-server/share/xcat/netboot/rh/dracut/xcatroot +++ b/xCAT-server/share/xcat/netboot/rh/dracut/xcatroot @@ -62,12 +62,11 @@ if [ -r /rootimg.sfs ]; then mkdir -p /rw mount -t squashfs /rootimg.sfs /ro mount -t tmpfs rw /rw - modinfo overlay + modprobe overlay if [ $? -eq 0 ]; then echo "Mounting $NEWROOT with type overlay" mkdir -p /rw/upper mkdir -p /rw/work - modprobe overlay mount -t overlay -o lowerdir=/ro,upperdir=/rw/upper,workdir=/rw/work mergedroot $NEWROOT else echo "Mounting $NEWROOT with type aufs" diff --git a/xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot b/xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot index dc8910aa0..b52b49035 100755 --- a/xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot +++ b/xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot @@ -69,12 +69,11 @@ if [ -r /rootimg.sfs ]; then mkdir -p /rw mount -t squashfs /rootimg.sfs /ro mount -t tmpfs rw /rw - modinfo overlay + modprobe overlay if [ $? -eq 0 ]; then echo "Mounting $NEWROOT with type overlay" mkdir -p /rw/upper mkdir -p /rw/work - modprobe overlay mount -t overlay -o lowerdir=/ro,upperdir=/rw/upper,workdir=/rw/work mergedroot $NEWROOT else echo "Mounting $NEWROOT with type aufs" diff --git a/xCAT-server/share/xcat/netboot/rh/dracut_047/xcatroot b/xCAT-server/share/xcat/netboot/rh/dracut_047/xcatroot index 0aeaa51d4..b851865b5 100755 --- a/xCAT-server/share/xcat/netboot/rh/dracut_047/xcatroot +++ b/xCAT-server/share/xcat/netboot/rh/dracut_047/xcatroot @@ -69,12 +69,11 @@ if [ -r /rootimg.sfs ]; then mkdir -p /rw mount -t squashfs /rootimg.sfs /ro mount -t tmpfs rw /rw - modinfo overlay + modprobe overlay if [ $? -eq 0 ]; then echo "Mounting $NEWROOT with type overlay" mkdir -p /rw/upper mkdir -p /rw/work - modprobe overlay mount -t overlay -o lowerdir=/ro,upperdir=/rw/upper,workdir=/rw/work mergedroot $NEWROOT else echo "Mounting $NEWROOT with type aufs" diff --git a/xCAT-server/share/xcat/netboot/sles/dracut_033/xcatroot b/xCAT-server/share/xcat/netboot/sles/dracut_033/xcatroot index bc244e073..c05a3e793 100755 --- a/xCAT-server/share/xcat/netboot/sles/dracut_033/xcatroot +++ b/xCAT-server/share/xcat/netboot/sles/dracut_033/xcatroot @@ -65,12 +65,11 @@ if [ -r /rootimg.sfs ]; then mkdir -p /rw mount -t squashfs /rootimg.sfs /ro mount -t tmpfs rw /rw - modinfo overlay + modprobe overlay if [ $? -eq 0 ]; then echo "Mounting $NEWROOT with type overlay" mkdir -p /rw/upper mkdir -p /rw/work - modprobe overlay mount -t overlay -o lowerdir=/ro,upperdir=/rw/upper,workdir=/rw/work mergedroot $NEWROOT else echo "Mounting $NEWROOT with type aufs" diff --git a/xCAT-server/share/xcat/netboot/ubuntu/dracut/xcatroot b/xCAT-server/share/xcat/netboot/ubuntu/dracut/xcatroot index 4a3f0745a..46575db55 100755 --- a/xCAT-server/share/xcat/netboot/ubuntu/dracut/xcatroot +++ b/xCAT-server/share/xcat/netboot/ubuntu/dracut/xcatroot @@ -34,12 +34,11 @@ if [ -r /rootimg.sfs ]; then mkdir -p /rw mount -t squashfs /rootimg.sfs /ro mount -t tmpfs rw /rw - modinfo overlay + modprobe overlay if [ $? -eq 0 ]; then echo "Mounting $NEWROOT with type overlay" mkdir -p /rw/upper mkdir -p /rw/work - modprobe overlay mount -t overlay -o lowerdir=/ro,upperdir=/rw/upper,workdir=/rw/work mergedroot $NEWROOT else echo "Mounting $NEWROOT with type aufs"