Update README.md
This commit is contained in:
parent
9ea9589042
commit
568acc4a87
10
README.md
10
README.md
|
|
@ -33,13 +33,14 @@ This assumes tho that Python and Pip is present (not always the case on the defa
|
||||||
So, assuming you're building your own ISO and want to create an automated install.<br>
|
So, assuming you're building your own ISO and want to create an automated install.<br>
|
||||||
This is probably what you'll need, a minimal example of how to install using the library.
|
This is probably what you'll need, a minimal example of how to install using the library.
|
||||||
|
|
||||||
import archinstall, getpass
|
```python
|
||||||
|
import archinstall, getpass
|
||||||
|
|
||||||
|
|
||||||
selected_hdd = archinstall.select_disk(archinstall.all_disks())
|
selected_hdd = archinstall.select_disk(archinstall.all_disks())
|
||||||
disk_password = getpass.getpass(prompt='Disk password (won\'t echo): ')
|
disk_password = getpass.getpass(prompt='Disk password (won\'t echo): ')
|
||||||
|
|
||||||
with archinstall.Filesystem(selected_hdd, archinstall.GPT) as fs:
|
with archinstall.Filesystem(selected_hdd, archinstall.GPT) as fs:
|
||||||
fs.use_entire_disk('luks2')
|
fs.use_entire_disk('luks2')
|
||||||
with archinstall.luks2(fs) as crypt:
|
with archinstall.luks2(fs) as crypt:
|
||||||
if selected_hdd.partition[1]['size'] == '512M':
|
if selected_hdd.partition[1]['size'] == '512M':
|
||||||
|
|
@ -59,6 +60,7 @@ This is probably what you'll need, a minimal example of how to install using the
|
||||||
installation.user_set_pw('root', 'toor')
|
installation.user_set_pw('root', 'toor')
|
||||||
|
|
||||||
installation.add_AUR_support()
|
installation.add_AUR_support()
|
||||||
|
```
|
||||||
|
|
||||||
This installer will perform the following:
|
This installer will perform the following:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue