scripts/gestion/gen_confs/pxeboot/mount_ubuntu_live

15 lines
543 B
Bash
Executable file

#!/bin/bash
. /usr/scripts/gestion/gen_confs/pxeboot/config
umount $TFTPROOT/livecd/ubuntu/* || true;
for type in $UBUNTU_LIVE_TYPE; do
for dist in $UBUNTU_LIVE; do
for arch in $UBUNTU_LIVE_ARCHS; do
if test -e $ISODIR/ubuntu/$type-$dist-desktop-$arch.iso; then
mkdir -p $TFTPROOT/livecd/ubuntu/$type-$dist-$arch
mount -o loop,ro $ISODIR/ubuntu/$type-$dist-desktop-$arch.iso $TFTPROOT/livecd/ubuntu/$type-$dist-$arch
fi
done
done
done
/etc/init.d/nfs-kernel-server start