From 4111d41ef221ef2a111feb4ac227199bc2da4441 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Mon, 12 Jul 2021 02:21:18 +0200 Subject: [PATCH] grub-defconfig removed in favour of making a template config by configmake --- grub-configmake/package | 6 +++ .../payload/usr/bin/grub-configmake | 40 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100755 grub-configmake/package create mode 100644 grub-configmake/payload/usr/bin/grub-configmake diff --git a/grub-configmake/package b/grub-configmake/package new file mode 100755 index 0000000..d94134b --- /dev/null +++ b/grub-configmake/package @@ -0,0 +1,6 @@ +#Made By Ohio2 +pkg_config_deploy=true +pkg_config_ver="0.2" +pkg_config_name="grub-configmake" +pkg_config_makedepends="" +pkg_config_depends="" diff --git a/grub-configmake/payload/usr/bin/grub-configmake b/grub-configmake/payload/usr/bin/grub-configmake new file mode 100644 index 0000000..c49cf9c --- /dev/null +++ b/grub-configmake/payload/usr/bin/grub-configmake @@ -0,0 +1,40 @@ +#!/bin/sh +echo -ne 'Running grub-configmake by ohio2'\\r +echo -ne '.'\\r +wait 0.5 +echo -ne '.'\\r +wait 0.5 +echo -ne '.'\\r +echo +echo +echo +echo +echo +echo +echo +echo +echo +echo +echo +read -p "What drive do you want to set root to? (Only otherwise it won't work.)" root +cat > /boot/grub/grub.cfg << "EOF" +set default=0 +set timeout=5 + +insmod ext2 +set root=(hd0,${root}) + +menuentry "Alnux+Busybox/Linux" { + linux /boot/bzImage root=/dev/sda${root} rw +} +EOF +echo +echo +echo +echo +echo +echo +echo +echo +echo "grub-configmake by ohio2 completed it's job" +exit 0