mail archive of the rauc mailing list
 help / color / mirror / Atom feed
From: "Kilimci, Caglar" <caglar.kilimci@accenture.com>
To: "rauc@pengutronix.de" <rauc@pengutronix.de>
Subject: [RAUC] Custom Installation
Date: Wed, 12 Jul 2017 11:21:55 +0000	[thread overview]
Message-ID: <BL2P114MB01795990FFA8B1D4154FABB09DAF0@BL2P114MB0179.NAMP114.PROD.OUTLOOK.COM> (raw)

Hi all,

I have been using RAUC and it is fantastic.

Normally, my system has two root file systems and install other part and reboots. Nothing special, neither handlers nor hooks. But I have wondered, if I create a bundle that contains a script and runs that script instead of regular `rauc install` command. So I created one without any root fs but handler. But installation failed.

Here is my manifest file:
[update]
compatible=Phytec
version=caglar_v2
description=update-bundle
build=20170711235827

[handler]
filename=/usr/bin/custom_install.sh
args=install

Here is the output of install and log messages:
root@phyboard-regor-am335x-1:/update# rauc install caglar.raucb
trying to contact rauc service
rauc-Message: installing /update/caglar.raucb: installing

(rauc:756): rauc-WARNING **: rauc service disappeared

D-Bus error while installing `/update/caglar.raucb`
root@phyboard-regor-am335x-1:/update# Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.notice dbus[205]: [system] Activating via systemd: service name='de.pengutronix.rauc' unit='rauc.service'
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.info systemd[1]: Starting Rauc Update Service...
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.notice dbus[205]: [system] Successfully activated service 'de.pengutronix.rauc'
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.info systemd[1]: Started Rauc Update Service.
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.info rauc[759]: input bundle: /update/caglar.raucb
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.info rauc[759]: Active slot bootname: system2
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.info rauc[759]: rauc-Message: Mounting bundle '/update/caglar.raucb' to '/run/rauc/bundle'
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.info rauc[759]: rauc-Message: installing /update/caglar.raucb: started
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.info rauc[759]: rauc-Message: installing /update/caglar.raucb: Checking and mounting bundle...
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.info rauc[759]: rauc-Message: Reading bundle: /update/caglar.raucb
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.info rauc[759]: rauc-Message: Verifying bundle...
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.info rauc[759]: **
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.info rauc[759]: rauc:ERROR:../git/src/install.c:294:determine_target_install_group: assertion failed (slotclasses->len > 0): (0 > 0)
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.notice systemd[1]: rauc.service: Main process exited, code=killed, status=6/ABRT
Jul 12 11:03:20 phyboard-regor-am335x-1 daemon.notice systemd[1]: rauc.service: Unit entered failed state.
Jul 12 11:03:21 phyboard-regor-am335x-1 daemon.warn systemd[1]: rauc.service: Failed with result 'signal'.

PS: By the way, documentation of handler [1] is out of date, I guess. Group name is changed from handlers to handler and does not accept key value of *install. If you explain more, I can update and send you pull request.

Thank you for your help.

[1] https://rauc.readthedocs.io/en/latest/using.html#system-based-customization-handlers

Sincerely,
Caglar Kilimci

________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com

_______________________________________________
RAUC mailing list

             reply	other threads:[~2017-07-12 11:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-12 11:21 Kilimci, Caglar [this message]
2017-07-31 13:44 ` Enrico Joerns
2017-08-01 12:54   ` [RAUC] [External] " Kilimci, Caglar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BL2P114MB01795990FFA8B1D4154FABB09DAF0@BL2P114MB0179.NAMP114.PROD.OUTLOOK.COM \
    --to=caglar.kilimci@accenture.com \
    --cc=rauc@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox