-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi André,
I'm also working a lot on UBI(fs) support lately. First of all, a patch like this one is needed also for squashfs on ubiblock or any platform with a root device which actually got some sort of locking... I used a hack jow made at some point on my UBI targets to solve this for now https://www.gitorious.org/openwrt-oxnas/openwrt-oxnas/commit/ac14e2e15f99c90f38addb12074579763e3dd62a It's nice to see that you made a nicer solution for this problem and I gave it a shot on my targets with good results. I got some comments which I will write as reply to the individual patches. Cheers Daniel On 05/22/2014 10:16 PM, André Valentin wrote: > Hi! > > I'm playing with different hardware, mainly with NAND storage. I'm happy > with ubi and ubifs, because it makes life easier and is a nice tool like > lvm. But I noticed that I was unable to upgrade an ubifs volume. I used > the sysupgrade framework, it unmounted root and killed several process. > rootfs was unmounted, but I still was not allowed to write the new image. > I always got "Resource busy". It seems that the left over processes > (procd, ash, telnet) still keep the ubifs volume open. So I deciced to add > an upgrade feature to procd. This allows procd to exec an upgrade command, > so allowing it to run as PID 1. I were able to kill all processes, and the > update went fine. > > These patches now do the following: procd: Add an ubus function which > starts the upgrade process sysupgrade: Add an special switch for this > update type and allow the script to kill all processes if run under PID 1. > platform.sh: Example sysupgrade plattform code for my developement tree. > > > Please consider these patches as a RFC. They are not final and need your > expertise and hints. I do appreciate every proposal. > > André > > André Valentin (3): procd: add support for running sysupgrade as PID 1 > sysupgrade: add support for running sysupgrade as PID 1 bcm53xx_brcm: add > sysupgrade support > > package/base-files/files/lib/upgrade/common.sh | 32 +++--- > package/base-files/files/sbin/sysupgrade | 13 +++ > package/system/procd/patches/100-sysupgrade.patch | 73 +++++++++++++ > .../base-files/lib/upgrade/platform.sh | 108 > ++++++++++++++++++++ 4 files changed, 214 insertions(+), 12 deletions(-) > create mode 100644 package/system/procd/patches/100-sysupgrade.patch > create mode 100755 > target/linux/bcm53xx_brcm/base-files/lib/upgrade/platform.sh > - -- ALLNET GmbH ; Maistr. 2 ; D-82110 Germering ; Germany Tel. +49-89-89422217 - Fax +49-89-89422233 http://www.allnet.de email: Daniel Golle <[email protected]> Schulungs-/Veranstaltungsprogramm: http://www.802lab.de<http://www.802lab.de/> Geschäftsführer: Wolfgang Marcus Bauer Handelsregister München B 95922 ; UST-ID-Nr. DE 128214294 ; St.-Nr.117/115/00164 WEEE-Reg.-NR. DE 13101093 Bankverbindung: Sparkasse Fürstenfeldbruck KTO: 2774594 ; BLZ: 70053070 Swift-Code: BYLADEM1FFB ; IBAN: DE61700530700002774594 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTf0G7AAoJECBgbL4bcbCQ2ocH/iWyHW8Iv2DZCejV9HgY/8j/ JjzZNJ9Ql9ha2CtSKGItzN47ZqKAUBL/Re3CjdX1Bx4AIH4MiCICNXSgXRmY3Uh0 51V6jWoAMV2wgGvCeaKgkhmu2UYgt35UKDGWbj+OrKkyUiiXBH+cwelTLuwWf7Xu 7m97GhMjjOJ0HMKfXPRsBzIOABEcUAityVU9DM96L+ozXx8y9b/jI2cLXVLJlaxD pbQIxgsZC9zdGcNHRjpPsbHfEUto/4z37cvPBu+r1CeiMi2kJ0ZzXQUdixXcj5QQ +qhU8Mmr63CpfKNQLwMxeSp9H5Qb0zxCV7lYyTciOwIHHJVpWNEHz7Vxjq9YDgg= =UdAn -----END PGP SIGNATURE----- _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
