From 4e451a8b120c57ba2264fecb0c40fc7dd78482eb Mon Sep 17 00:00:00 2001
From: Emanuele Aina <emanuele.aina@collabora.com>
Date: Wed, 27 Mar 2019 16:00:49 +0100
Subject: [PATCH] image-uboot: Use the Debos kernel commandline management
 tools

Use the `{setup,append}-kernel-cmdline` properties from the
`filesystem-deploy` Debos action to configure the commandline parameters
for the Linux kernel, rather than setting them by hand via sed.

Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
---
 apertis-image-uboot.yaml | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/apertis-image-uboot.yaml b/apertis-image-uboot.yaml
index ce00e100..3ddfdbca 100644
--- a/apertis-image-uboot.yaml
+++ b/apertis-image-uboot.yaml
@@ -75,13 +75,10 @@ actions:
         end: -4M
 
   - action: filesystem-deploy
+    setup-kernel-cmdline: true
+    append-kernel-cmdline: $cmdline
     description: Deploying ospack onto image
 
-  - action: run
-    description: Add kernel parameters
-    chroot: true
-    command: sed -i '1 s/$/{{ $cmdline }}/' /etc/kernel/cmdline
-
   - action: apt
     description: Kernel and system packages
     packages:
-- 
GitLab