static initcall_t __initcall_##fn \
__used __section(.security_initcall.init) = fn
-extern struct list_head populate_rootfs_domain;
-
struct obs_kernel_param {
const char *str;
int (*setup_func)(char *);
to call call_usermodehelper_exec */
void call_usermodehelper_freeinfo(struct subprocess_info *info);
+void populate_rootfs_wait(void);
+
static inline int
call_usermodehelper_fns(char *path, char **argv, char **envp,
enum umh_wait wait,
struct subprocess_info *info;
gfp_t gfp_mask = (wait == UMH_NO_WAIT) ? GFP_ATOMIC : GFP_KERNEL;
+ populate_rootfs_wait();
+
info = call_usermodehelper_setup(path, argv, envp, gfp_mask);
if (info == NULL)
#include <linux/syscalls.h>
#include <linux/utime.h>
#include <linux/async.h>
+#include <linux/export.h>
static __initdata char *message;
static void __init error(char *x)
LIST_HEAD(populate_rootfs_domain);
+void populate_rootfs_wait(void)
+{
+ async_synchronize_full_domain(&populate_rootfs_domain);
+}
+EXPORT_SYMBOL(populate_rootfs_wait);
+
static void __init async_populate_rootfs(void)
{
char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size);
* We need to ensure that the filesystem is ready by this point, wait for
* async_populate_rootfs to complete.
*/
- async_synchronize_full_domain(&populate_rootfs_domain);
+ populate_rootfs_wait();
/*
* check if there is an early userspace init. If yes, let it do all