Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
blob: c8df36c297427ee973adda4c5f0b69e6e3bb3749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os, stat

from exceptions import *
from helpers.disk import *
from helpers.general import *
from helpers.user_interaction import *

class HardDrive():
	def __init__(self, full_path:str, *args, **kwargs):
		if not stat.S_ISBLK(os.stat(full_path).st_mode):
			raise DiskError(f'Selected disk "{full_path}" is not a block device.')

class installer():
	def __init__(self, partition, *, profile=None, hostname='ArchInstalled'):
		self.profile = profile
		self.hostname = hostname

		self.partition = partition

	def minimal_installation(self):
		pass