You are not logged in.
Hello, I am making a new Arch linux installer. I've done some research and haven't found a good answer. I wanted to ask is there a way to make 3 partitions WHITIN one command ? I want to make a `efi`, `LVM`, `Swap` partition. But i can't do them within one TERMINAL command. Any help ? *I also checked the official ArchInstall python script, yet didn't get an answer*.
Thanks guys! This is my first post here, sorry for being a noob. Any chance i could use fdisk ? I can't find the command.
![]()
Last edited by PhantomRex123 (2021-10-25 09:41:22)
Offline
As you are making a script, what does it matter whether you use a single command or multiple after each other? That said you can just chain commands in parted afaik, like so: https://wiki.archlinux.org/title/Parted … _line_mode
Are you sure you want to do that? Who is that installer for? If just for you that's fine, if you intend to post this up somewhere be aware that we will not provide support for installs resulting from your installer and you should have your own relevant channels for providing that.
Last edited by V1del (2021-10-25 09:13:19)
Offline
As you are making a script, what does it matter whether you use a single command or multiple after each other? That said you can just chain commands in parted afaik, like so: https://wiki.archlinux.org/title/Parted … _line_mode
Are you sure you want to do that? Who is that installer for? If just for you that's fine, if you intend to post this up somewhere be aware that we will not provide support for installs resulting from your installer and you should have your own relevant channels for providing that.
I'm making a public installer. I want to use a GUI for the installation process. Users can view their current partitioning scheme OR use ext4, ext4 on LVM, btrfs, btrfs on LVM. Its not like it just installs everything , without permission.
Last edited by PhantomRex123 (2021-10-25 09:26:27)
Offline
No offense, but if you're struggling with how you want to do partitioning you are likely going to run into a lot of potentially dangerous gotchas that will break your users systems.
In any case this isn't the central topic of the thread and I don't intend to prod if it isn't necessary.
If your original issue is resolved by that link, please mark the topic as [SOLVED] by editing the title in the first post.
Offline
I'll do some extensive testing before i publish it ![]()
Offline
I prefer sfdisk. It reads the partition table from stdin (also makes it easy to separate config from script):
sfdisk $device <<EOF
label: gpt
name="your ESP", size=500MiB, type="EFI System"
name=swap, size=4GiB, type="Linux swap"
name=root, type="Linux LVM"
EOFOffline
I'll do some extensive testing before i publish it
And how are you going to do support? This will be seen as a totally separate distro by the Arch community and users who use your script will not be able to ask questions here, so how are you going to support those users?
Offline
Don't give up. I wish everyone were as optimistic and eager to work hard as you seem to be.
And yes, take Raynman's advice.
Offline