X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=helper%2Fappliance.c;h=c4d0b32117eedefb0604b2e3cdc723d67c61de61;hb=65125379903231f1b0c2ccd0929123317c80bcc2;hp=50d1d78802cf529145aa50ed386e1572c2440eb6;hpb=8dcb6d97b279ad752732d2880b7ef7a65887e401;p=febootstrap.git diff --git a/helper/appliance.c b/helper/appliance.c index 50d1d78..c4d0b32 100644 --- a/helper/appliance.c +++ b/helper/appliance.c @@ -197,6 +197,9 @@ static void add_kernel_modules (const char *whitelist_file, const char *modpath, struct writer *writer) { + if (verbose) + print_timestamped_message ("adding kernel modules"); + char **whitelist = NULL; if (whitelist_file != NULL) whitelist = load_file (whitelist_file); @@ -281,7 +284,9 @@ add_hostfiles (const char *hostfiles_file, struct writer *writer) if (strchr (hostfile, '*') || strchr (hostfile, '?')) { char *dirname = xstrdup (hostfile); char *patt = strrchr (dirname, '/'); - assert (patt); + if (!patt) + error (EXIT_FAILURE, 0, "%s: line %zu: invalid pattern\n(is this file a supermin appliance hostfiles file?)", + hostfiles_file, i+1); *patt++ = '\0'; char **files = read_dir (dirname);