summaryrefslogtreecommitdiff
path: root/functions.sh
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-08-08 22:01:36 +0800
committerIru Cai <mytbk920423@gmail.com>2016-08-08 22:19:00 +0800
commit78b1d0d7b85b02b2ba7fe72227f6d62208b23086 (patch)
tree762d7eb00520384938cb4396575e475a48887eb2 /functions.sh
parentce3ca5abc315668969fdcec50eb0d2bc645f27dd (diff)
downloadliveusb-builder-78b1d0d7b85b02b2ba7fe72227f6d62208b23086.tar.xz
add gen_grubcfg() to generate GRUB config from entry file
Diffstat (limited to 'functions.sh')
-rw-r--r--functions.sh8
1 files changed, 8 insertions, 0 deletions
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[@]}