diff --git a/archinstall/creds.json b/archinstall/creds.json new file mode 100644 index 0000000..198188a --- /dev/null +++ b/archinstall/creds.json @@ -0,0 +1,5 @@ +{ + "!superusers": { + "junikim": { "!password": "password" } + } +} diff --git a/archinstall/disk.json b/archinstall/disk.json new file mode 100644 index 0000000..2c153dd --- /dev/null +++ b/archinstall/disk.json @@ -0,0 +1,30 @@ +{ + "/dev/vda": { + "partitions": [ + { + "boot": true, + "encrypted": false, + "filesystem": { + "format": "fat32" + }, + "wipe": true, + "mountpoint": "/boot", + "size": "513MB", + "start": "5MB", + "type": "primary" + }, + { + "encrypted": false, + "filesystem": { + "format": "ext4" + }, + "wipe": true, + "mountpoint": "/", + "size": "100%", + "start": "518MB", + "type": "primary" + } + ], + "wipe": true + } +} diff --git a/install.json b/archinstall/install.json similarity index 72% rename from install.json rename to archinstall/install.json index f906be5..9fad6bd 100644 --- a/install.json +++ b/archinstall/install.json @@ -13,13 +13,11 @@ "runuser -l junikim -c /home/junikim/arch_rice/user_arch.sh" ], - "filesystem": "ext4", - "gfx_driver": "All open-source (default)", "harddrives": ["/dev/vda"], - "hostname": "archlinux1-kvm", + "hostname": "archbox", "kernels": ["linux"], @@ -28,28 +26,22 @@ "mirror-region": "Worldwide", "nic": { - "NetworkManager": true + "type": "NM" }, "ntp": true, - "packages": ["docker", "git", "wget", "neovim"], + "packages": ["docker", "git", "neovim"], "profile": "minimal", "services": ["docker"], - "superusers": { - "junikim": { - "!password": "password" - } - }, + "swap": false, "sys-encoding": "utf-8", "sys-language": "en_US", - "timezone": "US/Eastern", - - "users": {} + "timezone": "US/Eastern" } diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..ad228f8 --- /dev/null +++ b/install.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +DIR="$(dirname "$(realpath "$0")")" + +archinstall --config "$DIR/archinstall/install.json"\ + --creds "$DIR/archinstall/creds.json"\ + --disk_layouts "$DIR/archinstall/disk.json"