Separate grub update
This commit is contained in:
parent
30dd79a83c
commit
5fe06e923f
|
@ -225,8 +225,6 @@ function initial_setup {
|
||||||
|
|
||||||
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'i386' ]]; then
|
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'i386' ]]; then
|
||||||
apt-get -yq install grub2
|
apt-get -yq install grub2
|
||||||
sed -i 's|GRUB_CMDLINE_LINUX_DEFAULT=.*|GRUB_CMDLINE_LINUX_DEFAULT="quiet ifnames=0 slub_debug=FZP slab_nomerge page_poison=1"|g' /etc/default/grub
|
|
||||||
update-grub
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d $INSTALL_DIR ]; then
|
if [ ! -d $INSTALL_DIR ]; then
|
||||||
|
@ -236,6 +234,15 @@ function initial_setup {
|
||||||
mark_completed $FUNCNAME
|
mark_completed $FUNCNAME
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setup_grub {
|
||||||
|
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'i386' ]]; then
|
||||||
|
if ! grep -q 'iframes=0' /etc/default/grub; then
|
||||||
|
sed -i 's|GRUB_CMDLINE_LINUX_DEFAULT=.*|GRUB_CMDLINE_LINUX_DEFAULT="quiet ifnames=0 slub_debug=FZP slab_nomerge page_poison=1"|g' /etc/default/grub
|
||||||
|
update-grub
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function admin_user_sudo {
|
function admin_user_sudo {
|
||||||
if ! grep -q "$MY_USERNAME ALL=(ALL) ALL" $rootdir/etc/sudoers; then
|
if ! grep -q "$MY_USERNAME ALL=(ALL) ALL" $rootdir/etc/sudoers; then
|
||||||
echo "$MY_USERNAME ALL=(ALL) ALL" >> $rootdir/etc/sudoers
|
echo "$MY_USERNAME ALL=(ALL) ALL" >> $rootdir/etc/sudoers
|
||||||
|
@ -748,6 +755,9 @@ function setup_utils {
|
||||||
function_check initial_setup
|
function_check initial_setup
|
||||||
initial_setup
|
initial_setup
|
||||||
|
|
||||||
|
function_check setup_grub
|
||||||
|
setup_grub
|
||||||
|
|
||||||
function_check install_tor
|
function_check install_tor
|
||||||
install_tor
|
install_tor
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue