From 4e725c150649ed58df31232c58dc6b9074ae795e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 9 Apr 2017 01:05:59 +0200 Subject: [PATCH] lorax-templates-qubes: create basic /dev files in installation image `rpm -qa` needs /dev/urandom --- lorax-templates-qubes/templates/runtime-postinstall.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lorax-templates-qubes/templates/runtime-postinstall.tmpl b/lorax-templates-qubes/templates/runtime-postinstall.tmpl index 65236cf..c2e277f 100644 --- a/lorax-templates-qubes/templates/runtime-postinstall.tmpl +++ b/lorax-templates-qubes/templates/runtime-postinstall.tmpl @@ -128,6 +128,11 @@ remove etc/lvm/cache remove etc/lvm/lvm.conf append etc/lvm/lvm.conf "global {\n\tuse_lvmetad = 1\n}\n" +## have basic /dev files +remove dev/null +runcmd mknod ${root}/dev/null c 1 3 +runcmd mknod ${root}/dev/urandom c 1 9 + ## Record the package versions used to create the image runcmd chroot ${root} /bin/rpm -qa --pipe "tee /root/lorax-packages.log"