Re: Patch for Moblin Image Creator -- add / entry in fstab

2008-01-18 Thread Matt Zimmerman
Better to use a placeholder for the device name, if it doesn't actually
correspond to the mount.  Otherwise, this is very confusing to developers.

e.g.:

+print >> fstab_file, "unionfs  / unionfs
defaults0 0"


On Fri, Jan 18, 2008 at 10:41:25AM +0800, Du, Alek wrote:
> Michael,
> 
> Thanks for the patch. Initial test shows although the system's real root is 
> unionfs containing ro squashfs plus rw ext3 /dev/sda2, adding the line does 
> no harm to system. System shows a /dev/sda2 mount to /, but according to 
> /proc/mounts, there is no such mount. It seems an ideal workaround.
> 
> JohnV, Rob,
> Any thoughts regarding to the patch?
> 
> Thanks,
> Alek
> 
> -Original Message-
> From: Michael Frey [mailto:[EMAIL PROTECTED] 
> Sent: 2008年1月18日 5:57
> To: Du, Alek
> Cc: Rhoads, Rob; Villalovos, John L; Karur Mohan, Prajwal; 
> ubuntu-mobile@lists.ubuntu.com
> Subject: Patch for Moblin Image Creator -- add / entry in fstab
> 
> Alek,
> 
> Attached is a patch to Moblin Image Creator that adds an entry to fstab
> for the / ext3 partition. This fixes a bug where GnomeVFS will not work
> properly without such an entry.
> 
> Thanks,
> Michael
> 
> 
> 
> 
> -- 
> Ubuntu-mobile mailing list
> Ubuntu-mobile@lists.ubuntu.com
> Modify settings or unsubscribe at: 
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

-- 
 - mdz

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


RE: Patch for Moblin Image Creator -- add / entry in fstab

2008-01-17 Thread Du, Alek
Michael,

Thanks for the patch. Initial test shows although the system's real root is 
unionfs containing ro squashfs plus rw ext3 /dev/sda2, adding the line does no 
harm to system. System shows a /dev/sda2 mount to /, but according to 
/proc/mounts, there is no such mount. It seems an ideal workaround.

JohnV, Rob,
Any thoughts regarding to the patch?

Thanks,
Alek

-Original Message-
From: Michael Frey [mailto:[EMAIL PROTECTED] 
Sent: 2008年1月18日 5:57
To: Du, Alek
Cc: Rhoads, Rob; Villalovos, John L; Karur Mohan, Prajwal; 
ubuntu-mobile@lists.ubuntu.com
Subject: Patch for Moblin Image Creator -- add / entry in fstab

Alek,

Attached is a patch to Moblin Image Creator that adds an entry to fstab
for the / ext3 partition. This fixes a bug where GnomeVFS will not work
properly without such an entry.

Thanks,
Michael




-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


Patch for Moblin Image Creator -- add / entry in fstab

2008-01-17 Thread Michael Frey
Alek,

Attached is a patch to Moblin Image Creator that adds an entry to fstab
for the / ext3 partition. This fixes a bug where GnomeVFS will not work
properly without such an entry.

Thanks,
Michael



diff --git a/libs/InstallImage.py b/libs/InstallImage.py
index 8be7649..b8f044e 100755
--- a/libs/InstallImage.py
+++ b/libs/InstallImage.py
@@ -198,6 +198,7 @@ class InstallImage(object):
 
 def create_fstab(self, swap = True):
 fstab_file = open(os.path.join(self.target.fs_path, 'etc/fstab'), 'w')
+print >> fstab_file, "/dev/sda2  /   ext3defaults,noatime0 0"
 print >> fstab_file, "proc			/proc			proc	defaults	0 0"
 if swap:
 print >> fstab_file, "/dev/sda3		none			swap	sw		0 0"
-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile