Logo Search packages:      
Sourcecode: ubiquity version File versions  Download package

def ubiquity::frontend::noui::Wizard::get_partitions (   self  ) 

get_partitions() -> dict {'mount point' : 'dev'}

Get the information to be able to partitioning the disk.
Partitioning the disk and return a dict with the pairs
mount point and device.
At least, there must be 2 partitions: / and swap.

Definition at line 54 of file noui.py.

00054                             :
        '''get_partitions() -> dict {'mount point' : 'dev'}

        Get the information to be able to partitioning the disk.
        Partitioning the disk and return a dict with the pairs
        mount point and device.
        At least, there must be 2 partitions: / and swap.
        '''
        #FIXME: We've to put here the autopartitioning stuff
        
        # This is just a example info.
        # We should take that info from the debconf
        # Something like:
        # re = self.db.get('ubiquity/mountpoints')
        # for path, dev in re:
        #     mountpoints[path] = dev
        self.mountpoints = {'/'         : '/dev/hda1',
                                                'swap'    : '/dev/hda2',
                                                '/home' : '/dev/hda3'}
        # TODO cjwatson 2006-02-01: convert this to debconffiltered partman
        self.mountpoints = call_autoparted()
        if self.mountpoints is None:
            print 'Autopartioning fail!'

        return self.mountpoints

    def run_main_loop(self):


Generated by  Doxygen 1.6.0   Back to index