[canonical-livepatch-tools][PATCH] livepatch-tool: Create empty file ~/.livepatch-cvenotes

Juerg Haefliger juerg.haefliger at canonical.com
Fri Oct 13 09:54:53 UTC 2017


This file needs to be present for certain commands so create it if it's
not present.

Signed-off-by: Juerg Haefliger <juerg.haefliger at canonical.com>
---
 livepatch-tool | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/livepatch-tool b/livepatch-tool
index b715e239c862..45974d1be652 100755
--- a/livepatch-tool
+++ b/livepatch-tool
@@ -915,6 +915,8 @@ if [ -z "$command" ]; then
 fi
 shift
 
+[ -e ~/.livepatch-cvenotes ] || touch ~/.livepatch-cvenotes
+
 case "$command" in
   am)
     echo "Applying mbox to ${git_branch:-all}"
-- 
2.14.1





More information about the kernel-team mailing list