From 78b1d0d7b85b02b2ba7fe72227f6d62208b23086 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Mon, 8 Aug 2016 22:01:36 +0800 Subject: add gen_grubcfg() to generate GRUB config from entry file --- functions.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'functions.sh') diff --git a/functions.sh b/functions.sh index 4e97511..8c83cb3 100644 --- a/functions.sh +++ b/functions.sh @@ -34,6 +34,14 @@ process_distro() { ISOMNT="/media/$ISOFILE" } +gen_grubcfg() { + local entry + for entry in "distro/$1/entry"* + do + UUID="$UUID" ISOFILE="$ISOFILE" ./mkgrubcfg.sh "$entry" + done +} + download_iso() { mkdir -p isofiles for url in ${mirrorlist[@]} -- cgit v1.2.3