Avoid vagrant user creation on quantal64 base box in case it has already been created
This commit is contained in:
parent
b54dcdc57b
commit
fcaf98d669
1 changed files with 4 additions and 2 deletions
|
@ -78,8 +78,10 @@ EOF
|
||||||
rm -f $rootfs/etc/init/tty{5,6}.conf
|
rm -f $rootfs/etc/init/tty{5,6}.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! (grep -q vagrant $rootfs/etc/passwd); then
|
||||||
chroot $rootfs useradd --create-home -s /bin/bash vagrant
|
chroot $rootfs useradd --create-home -s /bin/bash vagrant
|
||||||
echo "vagrant:vagrant" | chroot $rootfs chpasswd
|
echo "vagrant:vagrant" | chroot $rootfs chpasswd
|
||||||
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue