diff options
Diffstat (limited to 'install')
-rwxr-xr-x | install | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -667,15 +667,38 @@ def in_bootenv(cmd): chroot += cmd return call(chroot, stderr=PIPE, stdout=PIPE) + +def write_vfstab(): + vfstab=''' +#device device mount FS fsck mount mount +#to mount to fsck point type pass at boot options +# +fd - /dev/fd fd - no - +swap - /tmp tmpfs - yes - +/dev/zvol/dsk/{rpool}/swap - - swap - no - +'''.format(rpool=rpool) + try: + f = open(rootdir + '/etc/vfstab', 'w') + print(vfstab, file=f) + f.close() + except: + pass + + def configure_bootenv(): progress = ProgressMessage(screen, title='Configuring Dyson boot environment', width=50) + + write_vfstab() + progress.text = 'Preparing chroot ...' call(['mount', '-F' , 'lofs', '/devices', rootdir + '/devices'], stdout=PIPE, stderr=PIPE) call(['mount', '-F' , 'fd', '-', rootdir + '/dev/fd'], stdout=PIPE, stderr=PIPE) call(['mount', '-F' , 'proc', '-', rootdir + '/proc'], stdout=PIPE, stderr=PIPE) + progress.text = 'Updating devices ...' in_bootenv(['/sbin/devfsadm']) - progress.text = 'Updating boot archive, please wait ...' + + progress.text = 'Creating boot archive, please wait ...' in_bootenv(['/sbin/bootadm', 'update-archive']) |