Hi list,
About the live-initramfs starting scripts,
Studying the Linux normal boot process we can observe the root partition is
mounted read-only by the initial script named "local", and the other
partitions are listed in the /etc/fstab and mounted by the "init" script.
It's easy to do the same with a Live system,
The live script should not mount a home partition, simply write a line
in /etc/fstab requesting the "init" script to do that.
thus we gain automatic fsck of the home persistent partition like a normal
Linux system.
Best regards,
Jordi Pujol
--- /home/live/testing-personal/initrd-110-7-orig/scripts/live 2007-11-19 10:58:26.000000000 +0100
+++ /home/live/testing-personal/initrd/scripts/live 2007-11-24 15:17:22.000000000 +0100
@@ -1064,15 +1185,17 @@
if [ -b "${homecow}" ]
then
- mount -t $(get_fstype "${homecow}") -o rw,noatime "${homecow}" "${rootmnt}/home"
+ echo "${homecow} /home auto rw,noatime 0 2" >> "${rootmnt}/etc/fstab"
export HOMEMOUNTED=1 # used to proper calculate free space in do_snap_copy()
else
[ "${quiet}" != "y" ] && log_warning_msg "Unable to find the persistent home medium"
_______________________________________________
debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel