[OpenWrt-Devel] [PATCH] fstools: add a hook before mounting the overlay

John Crispin john at phrozen.org
Wed Oct 9 10:41:43 EDT 2019

On 09/10/2019 16:34, Alin Năstac wrote:
> On Wed, Oct 9, 2019 at 2:59 PM John Crispin <john at phrozen.org> wrote:
>> On 09/10/2019 14:41, Alin Nastac wrote:
>>> Scripts located in the directory /lib/mount_root will be executed
>>> before mounting the overlay.
>>> Signed-off-by: Alin Nastac <alin.nastac at gmail.com>
>> Hi,
>> should it not be /etc/mount_root.d/ ? what do you need this for if I may
>> ask ?
>> further comments inline ...
>>       John
> Hi John,
> My target is dual bank and I need to copy parts of the customization
> from the old bank after upgrade.

please dont remove the CC tot he mailing list

I dont understamd this part, should sysupgrade not be able to handle 
this for you ?

> To resume your observations:
>   - scripts must be relocated to /etc/mount_root.d/
>   - use runqueue API
>   - implement the necessary functions in overlay.c
> Would that be OK? If so, I will be back with a 2nd version of this patch.

I would first like to understand the use-case


> Alin

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list