Dynamic check for addons as grml-small is nowadays shipped with addons.
authorUlrich Dangel <uli@spamt.net>
Tue, 27 Oct 2009 20:33:46 +0000 (21:33 +0100)
committerUlrich Dangel <uli@spamt.net>
Tue, 27 Oct 2009 20:40:29 +0000 (21:40 +0100)
grml2usb

index 06a8f8a..6455aac 100755 (executable)
--- a/grml2usb
+++ b/grml2usb
@@ -1222,8 +1222,8 @@ def install_iso_files(grml_flavour, iso_mount, device, target):
             sys.exit(1)
 
     if not options.skipaddons:
-        if grml_flavour.endswith('-small'):
-            logging.info("Note: grml-small doesn't provide any addons, not installing them therefore.")
+        if not search_file('addons', iso_mount):
+            logging.info("Could not find addons, therefore not installing.")
         else:
             copy_addons(iso_mount, target)