mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-12 03:41:12 +00:00
Added hook for AD support
Adding dependencies for Active Directory support to workaround LP: #1921862 Co-authored-by: Didier Roche <didrocks@ubuntu.com>
This commit is contained in:
parent
26cadb7cfe
commit
fee8ba22f4
@ -1116,6 +1116,26 @@ EOF
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ $PROJECT = ubuntu ]; then
|
||||
cat > config/hooks/001-active-directory.chroot <<EOF
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "I: Adding dependencies for Active Directory support (Workaround LP: #1921862)"
|
||||
|
||||
apt-get -y update
|
||||
|
||||
apt-get -y install sssd realmd adcli krb5-config
|
||||
|
||||
echo "I: Removing /var/lib/apt/lists/*"
|
||||
find /var/lib/apt/lists/ -type f | xargs rm -f
|
||||
|
||||
echo "I: Removing /var/cache/apt/*.bin"
|
||||
rm -f /var/cache/apt/*.bin/
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ $PROJECT = ubuntu-server ] && [ "${SUBPROJECT:-}" != live ]; then
|
||||
cat > config/hooks/100-remove-fstab.chroot <<EOF
|
||||
#! /bin/sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user