From 811d90ff40eddb4dec53aef5276424f25fff4606 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 25 Apr 2013 19:02:32 +0000 Subject: mount_root: prepare base-files Signed-off-by: John Crispin SVN-Revision: 36429 --- package/base-files/files.old/lib/firstboot/50_pivot | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 package/base-files/files.old/lib/firstboot/50_pivot (limited to 'package/base-files/files.old/lib/firstboot/50_pivot') diff --git a/package/base-files/files.old/lib/firstboot/50_pivot b/package/base-files/files.old/lib/firstboot/50_pivot new file mode 100644 index 0000000..53801d7 --- /dev/null +++ b/package/base-files/files.old/lib/firstboot/50_pivot @@ -0,0 +1,17 @@ +#!/bin/sh + +# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2010 Vertical Communications + +with_fo_pivot() { + # switch back to squashfs (temporarily) + # and park the ramdisk ontop of /tmp/root + pivot /rom /mnt + mount -o move /mnt /tmp/root + + # /overlay is the overlay + # /rom is the readonly + fopivot /overlay /rom +} + +boot_hook_add switch2jffs with_fo_pivot -- cgit v1.1