git.annexia.org
/
febootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
helper: Allow kernel and modpath to be selected from envvars (RHBZ#671082).
[febootstrap.git]
/
helper
/
appliance.c
diff --git
a/helper/appliance.c
b/helper/appliance.c
index
e014b12
..
50d1d78
100644
(file)
--- a/
helper/appliance.c
+++ b/
helper/appliance.c
@@
-77,6
+77,7
@@
create_appliance (const char *hostcpu,
iterate_inputs (inputs, nr_inputs, writer);
iterate_inputs (inputs, nr_inputs, writer);
+ writer->wr_file ("/lib/modules");
/* Kernel modules (3). */
add_kernel_modules (whitelist, modpath, writer);
/* Kernel modules (3). */
add_kernel_modules (whitelist, modpath, writer);
@@
-144,6
+145,11
@@
iterate_input_directory (const char *dirname, int dirfd, struct writer *writer)
if (d->d_name[0] == '.') /* ignore ., .. and any hidden files. */
continue;
if (d->d_name[0] == '.') /* ignore ., .. and any hidden files. */
continue;
+ /* Ignore *~ files created by editors. */
+ size_t len = strlen (d->d_name);
+ if (len > 0 && d->d_name[len-1] == '~')
+ continue;
+
add_string (&entries, &nr_entries, &nr_alloc, d->d_name);
}
add_string (&entries, &nr_entries, &nr_alloc, d->d_name);
}