From c647862fc069d2a7e927bc6d90c95d5cc0695ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 2 Feb 2014 13:30:43 +0100 Subject: [PATCH] rpm: do not fail on non-existing /etc/init/serial.conf This file is obsolete for a long time, so use it only if found in the system (perhaps still useful in other distros). --- rpm_spec/core-vm.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index c627a83..bd136f6 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -100,7 +100,9 @@ adduser --create-home user make install-vm DESTDIR=$RPM_BUILD_ROOT %triggerin -- initscripts -cp /usr/lib/qubes/serial.conf /etc/init/serial.conf +if [ -e /etc/init/serial.conf ]; then + cp /usr/lib/qubes/serial.conf /etc/init/serial.conf +fi %post