Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 37adce07 authored by Robert Nelson's avatar Robert Nelson
Browse files

pkg: sudo, every MB counts in this space saving


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 83518641
Branches
Tags
No related merge requests found
......@@ -70,6 +70,7 @@ minimal_armel () {
include_firmware="${include_firmware}"
chroot_no_lsb_release="${chroot_no_lsb_release}"
chroot_no_sudo="${chroot_no_sudo}"
chroot_rcnee_startup_scripts="${chroot_rcnee_startup_scripts}"
chroot_ENABLE_DEB_SRC="${chroot_ENABLE_DEB_SRC}"
chroot_KERNEL_HTTP_DIR="${chroot_KERNEL_HTTP_DIR}"
......@@ -143,6 +144,7 @@ is_debian () {
pkg_list
chroot_no_lsb_release="Debian"
chroot_no_sudo="enable"
}
#13.04
......
......@@ -70,6 +70,7 @@ minimal_armel () {
include_firmware="${include_firmware}"
chroot_no_lsb_release="${chroot_no_lsb_release}"
chroot_no_sudo="${chroot_no_sudo}"
chroot_rcnee_startup_scripts="${chroot_rcnee_startup_scripts}"
chroot_ENABLE_DEB_SRC="${chroot_ENABLE_DEB_SRC}"
chroot_KERNEL_HTTP_DIR="${chroot_KERNEL_HTTP_DIR}"
......@@ -143,6 +144,7 @@ is_debian () {
pkg_list
# chroot_no_lsb_release="Debian"
# chroot_no_sudo="enable"
}
#13.04
......
......@@ -83,6 +83,7 @@ minimal_armel () {
include_firmware="${include_firmware}"
chroot_no_lsb_release="${chroot_no_lsb_release}"
chroot_no_sudo="${chroot_no_sudo}"
chroot_rcnee_startup_scripts="${chroot_rcnee_startup_scripts}"
chroot_ENABLE_DEB_SRC="${chroot_ENABLE_DEB_SRC}"
chroot_KERNEL_HTTP_DIR="${chroot_KERNEL_HTTP_DIR}"
......@@ -192,6 +193,7 @@ is_debian () {
pkg_list
# chroot_no_lsb_release="Debian"
# chroot_no_sudo="enable"
}
#12.10
......
......@@ -318,7 +318,7 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
install_pkgs () {
#These packages have binaries needed by this script.
packages="locales sudo"
packages="locales"
for pkg in \${packages} ; do check_n_install ; done
if [ ! "x\${base_pkg_list}" = "x" ] ; then
......@@ -409,9 +409,14 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
add_user () {
groupadd admin || true
echo "%admin ALL=(ALL) ALL" >>/etc/sudoers
default_groups="admin,adm,dialout,cdrom,floppy,audio,dip,video"
if [ "x${chroot_no_sudo}" = "x" ] ; then
packages="sudo"
for pkg in \${packages} ; do check_n_install ; done
echo "%admin ALL=(ALL) ALL" >>/etc/sudoers
fi
pass_crypt=\$(perl -e 'print crypt(\$ARGV[0], "rcn-ee-salt")' ${password})
useradd -G "\${default_groups}" -s /bin/bash -m -p \${pass_crypt} -c "${full_name}" ${user_name}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment