circular pivot_root, is this possible ?
A message that is not in the archive (sent off-list or not yet received): [email protected]
On Tue, 02 Mar 2004 03:40:09 +0100, you wrote in linux.kernel:
Quoted 7 lines
Say the system needs an upgrade.... I want to
1)
pivot_root_backout_of the tmpfs, onto the initrd again
2) obtain via network a new sys.img, write it to the flash
3) wipe tmpfs, and recopy the contents of the new sys.img into memory
4)pivot_rootback into the tmpfs and start the higher level system again
How about using a second, small tmpfs for / under/over which the tmpfs for the full system can be mounted and umounted at will?
Signature · 2 lines
Ciao, Pascal
Quoted 4 lines · Pascal Schmidt
On Tue, 02 Mar 2004 03:40:09 +0100, you wrote in linux.kernel:
Quoted 2 lines
Say the system needs an upgrade.... I want to
Quoted 9 lines
Quoted 5 lines
1)
pivot_root_backout_of the tmpfs, onto the initrd again
2) obtain via network a new sys.img, write it to the flash
3) wipe tmpfs, and recopy the contents of the new sys.img into memory
4)pivot_rootback into the tmpfs and start the higher level system againHow about using a second, small tmpfs for / under/over which the tmpfs for the full system can be mounted and umounted at will?
Are you suggesing something like:
* tmfs1 contains 'basic functionality'
* tmpfs2 is mounted somewhere on tmpfs1
I still fail to see how this will let one restart/position init based on which filesystem/director is root.