projects
/
kernel-cn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
294bd8d
)
- ugasi execshield prije izvrsavanja gruba
author
Dinko Korunic
<kreator@carnet.hr>
Sat, 14 Feb 2009 13:54:46 +0000
(14:54 +0100)
committer
Dinko Korunic
<kreator@carnet.hr>
Sat, 14 Feb 2009 13:54:46 +0000
(14:54 +0100)
debian/postinst
patch
|
blob
|
history
diff --git
a/debian/postinst
b/debian/postinst
index
e476a32
..
bfbb597
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-116,13
+116,20
@@
else
/usr/sbin/update-grub >/dev/null 2>&1 || true
fi
/usr/sbin/update-grub >/dev/null 2>&1 || true
fi
+# install grub loader
+SHIELD=$(sysctl -e -n kernel.exec-shield)
+if [ ! -z "$SHIELD" ]; then
+ sysctl -w -e kernel.exec-shield=0 >/dev/null 2>&1
+fi
if ! grub-install --no-floppy '(hd0)' >/dev/null 2>&1; then
echo "."
echo "CN: FATAL ERROR running grub-install!"
echo "CN: Do not reboot your server and report this to OTRS immediately!"
exit 1
fi
if ! grub-install --no-floppy '(hd0)' >/dev/null 2>&1; then
echo "."
echo "CN: FATAL ERROR running grub-install!"
echo "CN: Do not reboot your server and report this to OTRS immediately!"
exit 1
fi
-echo -n " grub"
+if [ ! -z "$SHIELD" ]; then
+ sysctl -w -e "kernel.exec-shield=$SHIELD" >/dev/null 2>&1
+fi
# disable lilo
if [ -e /etc/lilo.conf ]; then
# disable lilo
if [ -e /etc/lilo.conf ]; then