casper: fix profile overwriting.
This commit is contained in:
parent
959722e3f5
commit
d881dc94c2
3 changed files with 9 additions and 39 deletions
|
|
@ -20,10 +20,13 @@ esac
|
||||||
|
|
||||||
log_begin_msg "$DESCRIPTION"
|
log_begin_msg "$DESCRIPTION"
|
||||||
|
|
||||||
cat << EOF > /root/etc/rc.local
|
cat << 'EOF' > /root/etc/rc.local
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Enable apparmor profile during live session to allow Abrowser to create user namespaces
|
# Enable apparmor profile during live session to allow Abrowser to create user namespaces
|
||||||
[ -d /rofs ] && apparmor_parser -a /etc/apparmor.d/abrowser
|
BROWSERS="abrowser icecat"
|
||||||
|
for browser in $BROWSERS; do
|
||||||
|
[ -d /rofs ] && apparmor_parser -a /etc/apparmor.d/$browser
|
||||||
|
done
|
||||||
EOF
|
EOF
|
||||||
chmod 755 /root/etc/rc.local
|
chmod 755 /root/etc/rc.local
|
||||||
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
PREREQ=""
|
|
||||||
DESCRIPTION="Enabling IceCat apparmor profile..."
|
|
||||||
|
|
||||||
prereqs()
|
|
||||||
{
|
|
||||||
echo "$PREREQ"
|
|
||||||
}
|
|
||||||
|
|
||||||
case $1 in
|
|
||||||
# get pre-requisites
|
|
||||||
prereqs)
|
|
||||||
prereqs
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
. /scripts/casper-functions
|
|
||||||
|
|
||||||
log_begin_msg "$DESCRIPTION"
|
|
||||||
|
|
||||||
cat << EOF > /root/etc/rc.local
|
|
||||||
#!/bin/sh
|
|
||||||
# Enable apparmor profile during live session to allow IceCat to create user namespaces
|
|
||||||
[ -d /rofs ] && apparmor_parser -a /etc/apparmor.d/icecat
|
|
||||||
EOF
|
|
||||||
chmod 755 /root/etc/rc.local
|
|
||||||
|
|
||||||
log_end_msg
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION=23
|
VERSION=24
|
||||||
|
|
||||||
. ./config
|
. ./config
|
||||||
|
|
||||||
|
|
@ -41,14 +41,11 @@ sed "s/cut/cut -d: -f2- | cut/" -i scripts/casper-functions
|
||||||
sed "s/head -n1/sed -n 1p/" -i scripts/casper-functions
|
sed "s/head -n1/sed -n 1p/" -i scripts/casper-functions
|
||||||
|
|
||||||
# Set trisquel isos as default suggestion.
|
# Set trisquel isos as default suggestion.
|
||||||
patch --no-backup-if-mismatch -p1 < $DATA/set_trisquel_iso_suggestion.patch
|
patch_p1 $DATA/set_trisquel_iso_suggestion.patch
|
||||||
|
|
||||||
# Enable abrowser apparmor profile
|
# Enable abrowser apparmor profile
|
||||||
for i in 35apparmor_abrowser 36apparmor_icecat
|
cp $DATA/35apparmor_browsers scripts/casper-bottom
|
||||||
do
|
chmod 755 scripts/casper-bottom/35apparmor_browsers
|
||||||
cp $DATA/$i scripts/casper-bottom
|
|
||||||
chmod 755 scripts/casper-bottom/$i
|
|
||||||
done
|
|
||||||
|
|
||||||
changelog "Compiled and customized for Trisquel enviroment."
|
changelog "Compiled and customized for Trisquel enviroment."
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue