Fix slow boot and add fsck at startup

parent d7323832
#!/bin/bash
if [ -z "$(grep fsck /etc/default/grub)" ]
then
sed -i 's/^\(GRUB_CMDLINE_LINUX_DEFAULT=".*\)"/\1 fsck.mode=force fsck.repair=yes"/' /etc/default/grub
fi
update-grub
...@@ -26,6 +26,13 @@ iface $i inet dhcp ...@@ -26,6 +26,13 @@ iface $i inet dhcp
EOF EOF
done done
sed -i 's/^\(GRUB_CMDLINE_LINUX_DEFAULT="quiet\)"/\1 pcie_aspm=off"/' /etc/default/grub sed -i 's/^\(GRUB_CMDLINE_LINUX_DEFAULT="quiet\)"/\1 pcie_aspm=off"/' /etc/default/grub
cat <<EOF > /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true
EOF
if [ $modif -ne 0 ] if [ $modif -ne 0 ]
then then
update-grub update-grub
......
...@@ -42,3 +42,6 @@ run_script update_faces.sh ...@@ -42,3 +42,6 @@ run_script update_faces.sh
run_script install_orca.sh run_script install_orca.sh
run_script register.sh run_script register.sh
run_script install_catfish.sh run_script install_catfish.sh
run_script fix_locales.sh
run_script fix_network.sh
run_script fix_fsck.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment