diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-01-27 15:36:31 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-01-27 15:36:31 +0000 |
commit | 8f564ae7a2fb0f170308bd103a6be0a981583b1c (patch) | |
tree | d275ecd592b7cce65e7f311830ab9704ac94891b /appliance/init | |
parent | d5bc69e54579013dc46c2f16d7bf82a10082a83a (diff) | |
download | libguestfs-8f564ae7a2fb0f170308bd103a6be0a981583b1c.tar.gz libguestfs-8f564ae7a2fb0f170308bd103a6be0a981583b1c.tar.xz libguestfs-8f564ae7a2fb0f170308bd103a6be0a981583b1c.zip |
appliance: udev >= 176 now requires /dev to be a devtmpfs.
See this udev commit:
https://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=220893b3cbdbf8932f95c44811b169a8f0d33939
Diffstat (limited to 'appliance/init')
-rwxr-xr-x | appliance/init | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/appliance/init b/appliance/init index d3a61562..4d74f919 100755 --- a/appliance/init +++ b/appliance/init @@ -18,6 +18,9 @@ rm -f /sys; mkdir /sys mount -t sysfs /sys /sys mkdir -p /run/lock +# devtmpfs is required since udev 176 +mount -t devtmpfs /dev /dev + if [ ! -L /etc/init.d/udev -a -x /etc/init.d/udev ]; then if type service >/dev/null 2>&1; then service udev start |