diff --git a/definitions/.suse/session.rb b/definitions/.suse/session.rb index 041649d21..c1b3e1762 100644 --- a/definitions/.suse/session.rb +++ b/definitions/.suse/session.rb @@ -13,6 +13,7 @@ :os_type_id => 'OpenSUSE_64', :postinstall_files => [ "vagrant.sh", "sshd.sh", + "sudoers.sh", "cleanup.sh", "minimize.sh" ], :shutdown_cmd => "/sbin/halt -h -p" }) diff --git a/definitions/.suse/sudoers.sh b/definitions/.suse/sudoers.sh new file mode 100644 index 000000000..eb80f3f88 --- /dev/null +++ b/definitions/.suse/sudoers.sh @@ -0,0 +1,3 @@ +# update sudoers - can't do this in autoinst.xml +echo -e "\nupdate sudoers ..." +echo -e "vagrant ALL=(ALL) NOPASSWD: ALL\n" >> /etc/sudoers diff --git a/definitions/sles-11-sp2-i386/sudoers.sh b/definitions/sles-11-sp2-i386/sudoers.sh new file mode 120000 index 000000000..18d9cf04d --- /dev/null +++ b/definitions/sles-11-sp2-i386/sudoers.sh @@ -0,0 +1 @@ +../.suse/sudoers.sh \ No newline at end of file diff --git a/definitions/sles-11-sp2/sudoers.sh b/definitions/sles-11-sp2/sudoers.sh new file mode 120000 index 000000000..18d9cf04d --- /dev/null +++ b/definitions/sles-11-sp2/sudoers.sh @@ -0,0 +1 @@ +../.suse/sudoers.sh \ No newline at end of file