Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
soc:2009:pravin:journal:ubuntubko [2009/07/17 03:59] less1 |
soc:2009:pravin:journal:ubuntubko [2009/07/17 05:55] less1 |
||
---|---|---|---|
Line 113: | Line 113: | ||
</code> | </code> | ||
+ | |||
+ | Got some information about this error on [[http://wiki.debian.org/initramfs/More|debian wiki]] | ||
+ | which says that | ||
+ | <code> | ||
+ | When switching another root device, initrd would pivot_root and then umount the ramdisk. But initramfs is rootfs: | ||
+ | you shouldn't pivot_root rootfs and can't unmount it. Just delete everything out of it (except the new block device node, if any), | ||
+ | overmount /, and exec the new init. (The klibc package contains a helper program in utils/run_init.c to do this for you, | ||
+ | and other packages have adopted this as switch_root.) | ||
+ | </code> | ||
+ | |||
+ | Now, I don't know for sure, which files are not getting deleated and hence causing problem. | ||
+ | |||
+ | ==== A question ==== | ||
+ | what is the differnece between debian script and ubuntu script that filesystem.squashfs is not working with ubuntu, but it works with debian? | ||
+ | |||
+ | - comparing ''d/scripts/live'' with ''u/scripts/casper'' --- too different, diff went crezy with this command. | ||
+ | - comparing ''d/bin/run-init'' with ''u/bin/run-init'', --- they are same. | ||
+ | - comparing ''d/init'' with ''u/init'' -- not much of difference |