[yocto] Read-only rootfs update

Ruben Schwarz r.schwarz at sotec.eu
Tue Nov 24 01:57:39 PST 2015


Hi,

We are using yocto to build a custom linux image for our BeagleBoneBlack
based hardware. We are using a read-only root file system to prevent data
lost if power supply is lost.
Now we wan't to be able to update our device. If it is possiple we wan't to
use apt/dpkg to do this update. We set up an update server and everything
works so far.

Following steps are done to do an update:

mount -o remount,rw /
apt-get update
apt-get upgrade

Everything works fine, new package versions are installed. After rebooting
the device and executing "dpkg -l" the old package version is listed.
Output of mount shows that there is tmpfs on /var/lib which hides the
/var/lib/dpkg folder.


root at device:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext4 (ro,relatime,data=ordered)
devtmpfs on /dev type devtmpfs
(rw,relatime,size=243140k,nr_inodes=60785,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /var/volatile type tmpfs (rw,relatime)
tmpfs on /var/lib type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)




Is there an standard way how to update devices with read-only root file
systems? Anybody here who did something similar?

Best regards
Ruben

-- 
Ruben Schwarz | SOTEC | r.schwarz at sotec.eu | T +49 7033 5458 34 | F +49
7033 5458 95

-- 


Besuchen Sie uns auf der SPS IPC Drives vom 24. - 26.11. in Nürnberg 
<http://sps-messe.de/eintrittskarten>
Ihr kostenloser Gutscheincode: 1551219857

Sichern Sie sich heute noch einen Platz bei Google's Online Event über den 
Arbeitsplatz der Zukunft <https://goo.gl/qn0dep>

www.sotec.eu | www.cloudwuerdig.com 
-- 
SOTEC Software Entwicklungs GmbH + Co Mikrocomputertechnik KG 
Calwer Straße 11, D-75395 Ostelsheim 
Sitz Ostelsheim, Amtsgericht Stuttgart HRA 330821/HRB 330664, 
Geschäftsführer: Florian Holz 
Cloudwürdig® ist eine eingetragene Marke der SOTEC Software Entwicklungs 
GmbH + Co Mikrocomputertechnik KG

Der Inhalt dieser e-Mail ist ausschließlich für den bezeichneten Adressaten 
bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser e-Mail oder dessen 
Vertreter sein sollten, so beachten Sie bitte, dass jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des 
Inhalts dieser e-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall 
mit dem Absender der e-Mail in Verbindung zu setzen.

The content of this e-mail is meant exclusively for the person to whom it 
is addressed. If you are not the person to whom this e-mail is addressed or 
his/her representative, please be informed, that any form of knowledge, 
publication, duplication or distribution of the content of this e-mail is 
inadmissible. We ask you, therefore, in such a case to please contact the 
sender of this e-mail.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151124/b7353237/attachment.html>


More information about the yocto mailing list