Hi, I've been trying to build a live cd with the last pilgrim version (git) and it seems that bindmounts doesn't get mounted. This is the output I get at the package installing stage:
[...] Installing: gnome-panel ##################### [426/620] /proc is empty (not mounted ?) Installing: rpm ##################### [427/620] Installing: gnome-python2-gconf ##################### [428/620] Installing: gnome-python2-desktop ##################### [429/620] Installing: tomcat5-servlet-2.4-api ##################### [430/620] GC Warning: Couldn't read /proc/stat GC Warning: GC_get_nprocs() returned -1 dirname: missing operand [...]
This patch solved the problem:
diff --git a/creator/livecd-creator b/creator/livecd-creator index 9a00946..7eac113 100755 --- a/creator/livecd-creator +++ b/creator/livecd-creator @@ -409,6 +409,9 @@ class InstallationTarget: (self.build_dir + "/yum-cache", "/var/cache/yum")]: self.bindmounts.append(BindChrootMount(f, self.build_dir + "/install_root", dest))
+ for b in self.bindmounts: + b.mount() + # make sure /etc/mtab is current inside install_root os.symlink("../proc/mounts", self.build_dir + "/install_root/etc/mtab")
Cheers, Alex
Hi Alexandre,
On Tue, 2007-04-03 at 12:55 +0200, Alexandre Magaz Graça wrote:
Hi, I've been trying to build a live cd with the last pilgrim version (git) and it seems that bindmounts doesn't get mounted. This is the output I get at the package installing stage:
Strange I didn't see this problem in my testing but ...
diff --git a/creator/livecd-creator b/creator/livecd-creator index 9a00946..7eac113 100755 --- a/creator/livecd-creator +++ b/creator/livecd-creator @@ -409,6 +409,9 @@ class InstallationTarget: (self.build_dir + "/yum-cache", "/var/cache/yum")]: self.bindmounts.append(BindChrootMount(f, self.build_dir + "/install_root", dest))
for b in self.bindmounts:
b.mount()
... you're absolutely right, we need this ... I managed to drop the actual mount() call ...
Thanks, Mark.
On Tue, 2007-04-03 at 12:07 +0100, Mark McLoughlin wrote:
On Tue, 2007-04-03 at 12:55 +0200, Alexandre Magaz Graça wrote:
Hi, I've been trying to build a live cd with the last pilgrim version (git) and it seems that bindmounts doesn't get mounted. This is the output I get at the package installing stage:
Strange I didn't see this problem in my testing but ...
And I didn't either. Pushed the fix
Thanks,
Jeremy
livecd@lists.fedoraproject.org