mail archive of the rauc mailing list
 help / color / mirror / Atom feed
From: "Enrico Jörns" <enricojoerns@web.de>
To: "Kilimci, Caglar" <caglar.kilimci@accenture.com>
Cc: "rauc@pengutronix.de" <rauc@pengutronix.de>
Subject: Re: [RAUC] Only Application FS Update
Date: Wed, 18 Oct 2017 23:30:21 +0200	[thread overview]
Message-ID: <16f903d6-f04d-032b-4ed6-2bec37c24f2e@web.de> (raw)
In-Reply-To: <BN6P114MB0068ED23FB4285F0F5E3A8059D4D0@BN6P114MB0068.NAMP114.PROD.OUTLOOK.COM>

Hi Caglar,

Am 18.10.2017 um 14:45 schrieb Kilimci, Caglar:
> Hi all,
> 
> I would like to use RAUC to update just my application FS so I do not have double root FS. In other words, only one root FS but double application FS. If I create an update bundle and install it, RAUC only install "slot.appfs.0". How can I configure RAUC to install different slots?
> 
> Here are my manifest file and system configuration:
> 
> # cat bundle/manifest.raucm
> [update]
> compatible=Phytec
> version=2
> 
> [image.appfs]
> sha256=05f23d6b732519342f265ed2605276585d487e34555be5ae927328164cd83c26
> size=135
> filename=appfs.tar.gz
> 
> # cat /etc/rauc/system.conf
> [system]
> compatible=Phytec
> bootloader=barebox
> 
> [keyring]
> path=ca.cert.pem
> 
> [slot.rootfs.0]
> device=/dev/mmcblk0p2
> type=ext4
> bootname=system1
> 
> [slot.appfs.0]
> device=/dev/mmcblk0p5
> type=ext4
> 
> [slot.appfs.1]
> device=/dev/mmcblk0p6
> type=ext4

well, different things.
First of all, I recommend to install only well-tested software states.
I.e. an appfs tested together with a specific rootfs state.
Now, this does not mean that the rootfs necessarily changes over
different iterations of the appfs and that not each update of an appfs
requires a (real) update of the rootfs.

But, with your design you seem to pin the rootfs to a fixed state that
cannot be changed anymore. It is only possibly to change the appfs.
Is that assumption true? Or do you have another 'factory' slot you can
run RAUC from to update you rootfs?

Now, the normal way RAUC determines how to update a specific slot is by
detecting the booted slot and all other slots being 'active' at the same
time. RAUC will detect your booted rootfs slot and all other slots
having this slot mentiond as their 'parent' as active slots.

In your config, you (intentionally) do not have any relation set between
the appfs and rootfs. This way, RAUC cannot detect that any of your
appfs is 'active' an thus chooses the 'next' one to install.

At the moment, 'next' means the next inactive slot of same class listed
in the system configuration. There is no further metric atm. Thus, you
cannot manually select appfs.1 for installation if that is what you
intended to do.


Now, the key aspect is, if you have only a single rootfs, you must have
a different switching point than 'conventional' approaches.
Thus, my question is where and how you do select which appfs to use?
Here is the point to a) let the RAUC boot selection algorithm interact
with and to b) perform the detection of the slot booted.

If you do not intend to update your rootfs, remove it from the slot list
and set appropriate bootnames for appfs 0 and 1.

But, to lead you in the right way it would help to know a bit more about
your motivations for the design you made.


Best regards

Enrico

_______________________________________________
RAUC mailing list

  reply	other threads:[~2017-10-18 21:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-18 12:45 Kilimci, Caglar
2017-10-18 21:30 ` Enrico Jörns [this message]
2017-10-19 10:41   ` [RAUC] [External] " Kilimci, Caglar
2017-10-22 13:07     ` Enrico Jörns
2017-10-23 15:24       ` Kilimci, Caglar
2017-10-25 11:29         ` Enrico Jörns
2017-10-25 11:44           ` 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=16f903d6-f04d-032b-4ed6-2bec37c24f2e@web.de \
    --to=enricojoerns@web.de \
    --cc=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