diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-22 15:59:33 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-22 15:59:34 +0100 |
commit | eb9181b33bdda2e1ce81094d77913f7b68e26156 (patch) | |
tree | 136300a04f0c82509bf92245b240e181a5566e0a /mount_root.c | |
parent | aa59a26581d5350ef065854bd0b8a86de910700b (diff) | |
download | fstools-eb9181b33bdda2e1ce81094d77913f7b68e26156.tar.gz |
mount_root: keep track of overlay initialization state (via xattr)
Remove all files (except sysupgrade.tgz) if /etc/init.d/done was not called
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'mount_root.c')
-rw-r--r-- | mount_root.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mount_root.c b/mount_root.c index bfbe217..7b69c7f 100644 --- a/mount_root.c +++ b/mount_root.c @@ -103,6 +103,11 @@ done(int argc, char *argv[1]) case FS_NONE: case FS_DEADCODE: return jffs2_switch(v); + + case FS_JFFS2: + case FS_UBIFS: + fs_state_set("/overlay", FS_STATE_READY); + break; } return 0; |