* Fix non-x86 installation: initialise automatic_mode even if we aren't using grub-installer. * Create /spu mount point on powerpc Cell installations. --- /usr/lib/ubiquity/ubiquity/components/install.py 2007-10-10 17:00:57.000000000 +0100 +++ /usr/lib/ubiquity/ubiquity/components/install.py 2007-10-18 14:18:04.000000000 +0100 @@ -34,8 +34,9 @@ else: self.preseed('netcfg/get_domain', '') + automatic_mode = 'UBIQUITY_AUTOMATIC' in os.environ + if os.access('/usr/share/grub-installer/grub-installer', os.X_OK): - automatic_mode = 'UBIQUITY_AUTOMATIC' in os.environ bootdevice = self.db.get('grub-installer/bootdev') with_other_os = self.db.get('grub-installer/with_other_os') only_debian = self.db.get('grub-installer/only_debian') --- /usr/share/ubiquity/install.py 2007-10-10 18:15:12.000000000 +0100 +++ /usr/share/ubiquity/install.py 2007-10-18 12:49:56.000000000 +0100 @@ -1164,6 +1164,21 @@ continue os.symlink(linksrc, linkdst) + # Create mount point for spufs, and create spu system group. + # Reimplemented from initscripts.postinst. + cpuinfo = None + try: + cpuinfo = open('/proc/cpuinfo') + cell_re = re.compile('^cpu.*Cell') + for line in cpuinfo: + if cell_re.match(line): + self.chrex('groupadd', '-K', 'GID_MAX=1000', 'spu') + os.mkdir(os.path.join(self.target, 'spu')) + break + finally: + if cpuinfo: + cpuinfo.close() + def get_all_interfaces(self): """Get all non-local network interfaces."""