archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
5.95k stars 514 forks source link

use_entire_disk() alternative? #1638

Open wbehrens-on-gh opened 1 year ago

wbehrens-on-gh commented 1 year ago

Currently I have a custom arch install script that contains the following

    mode = archinstall.GPT
    if archinstall.has_uefi() is False:
        mode = archinstall.MBR
    with archinstall.Filesystem(harddrive, mode) as fs:
        # We create a filesystem layout that will use the entire drive
        fs.use_entire_disk(root_filesystem_type='btrfs')

        # Create root partition and subvolumes
        root = fs.find_partition('/')
        root.subvolumes = {
            '@': '/', 
            '@home': '/home',
            '@log': '/var/log',
            '@snapshots': '/.snapshots',
            '@pkgs': '/var/cache/pacman/pkg'
        }

when trying to use it I get an error that use_entire_disk() has to be reworked but no alternative command is provided to use? what am I supposed to do for the time being?

wbehrens-on-gh commented 1 year ago

When manually partitioning is there a way to grab the rest of the disk when making the root partition?

jtyler76 commented 1 year ago

+1 on this.

It would be nice if the example in the main readme was runnable. It currently fails on the use_entire_disk() call.

Torxed commented 1 year ago

I'll be getting a bit more free time coming up, together with @jaybent we can probably revamp the documentation quite a bit. No promises but it's going to be a main focus of mine together with separate /boot.