Skip to content

Commit

Permalink
not group admin but user vagrant for sudo, and mount some devices for…
Browse files Browse the repository at this point in the history
… latecommand
  • Loading branch information
OlivierRaginel authored and jedi4ever committed Feb 9, 2011
1 parent 6cb6d4c commit b916b1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/debian-lenny-amd64/latecommand.sh
Expand Up @@ -6,7 +6,7 @@ apt-get -y update
apt-get clean

#Setting up sudo
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
sed -i -e 's/vagrant ALL=(ALL) ALL/vagrant ALL=(ALL) NOPASSWD: ALL/g' /etc/sudoers

#Installing vagrant keys
mkdir /home/vagrant/.ssh
Expand Down
2 changes: 1 addition & 1 deletion templates/debian-lenny-amd64/preseed.cfg
Expand Up @@ -310,7 +310,7 @@ d-i finish-install/reboot_in_progress note
# directly, or use the apt-install and in-target commands to easily install
# packages and run commands in the target system.
#d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
d-i preseed/late_command string apt-install wget; chroot /target wget --no-check-certificate -qO/tmp/latecommand.sh https://github.com/Babar/veewee/raw/master/templates/debian-lenny-amd64/latecommand.sh; chroot /target sh /tmp/latecommand.sh
d-i preseed/late_command string apt-install wget; mount -o loop /dev /target/dev; mount -o loop /proc /target/proc; chroot /target wget --no-check-certificate -qO/tmp/latecommand.sh https://github.com/Babar/veewee/raw/master/templates/debian-lenny-amd64/latecommand.sh; chroot /target sh /tmp/latecommand.sh

# Prevent chef from asking for a server
chef chef/chef_server_url string

0 comments on commit b916b1d

Please sign in to comment.