From f4589e7c31f96b2dee0633c5d0ea5f2f31138a17 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 13 Oct 2014 20:08:50 +0100 Subject: [PATCH] Fix linking of manifest into /custom/lib/apparmor/clicks/. --- .../ubuntu-touch/hooks/90-precompile-apparmor-policies.chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/ubuntu-touch/hooks/90-precompile-apparmor-policies.chroot b/live-build/ubuntu-touch/hooks/90-precompile-apparmor-policies.chroot index 264324fe..f17a937b 100755 --- a/live-build/ubuntu-touch/hooks/90-precompile-apparmor-policies.chroot +++ b/live-build/ubuntu-touch/hooks/90-precompile-apparmor-policies.chroot @@ -31,7 +31,7 @@ for manifest in /var/lib/apparmor/clicks/*; do name="${pkgdir_noversion##*/}" if [ -d "/custom/click/$name/$version" ]; then # Clone into custom. - ln -nsf "/custom/click/$name/$version$manifest_tail" "/custom/lib/apparmor/clicks$manifest_tail" + ln -nsf "/custom/click/$name/$version$manifest_tail" "/custom/lib/apparmor/clicks/${manifest##*/}" profile="$(basename "$manifest" .json)" cp -a "/var/lib/apparmor/profiles/click_$profile" /custom/lib/apparmor/profiles/ if [ -d "/usr/share/click/preinstalled/$name/$version" ]; then