Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to install HoloIso on a partition instead of erasing the entire drive needed #2

Open
boredpengu opened this issue Feb 5, 2024 · 3 comments

Comments

@boredpengu
Copy link

Problem:
Many users will have the same problem I am facing: For initial testing of HoloIso one does not want to erase the entire drive, but instead install the system on a separate partition alongside an existing installation - for testing stability of the existing hardware.

Suggested solution:
Either 1) add the option to select a partition instead of a full drive in HoloIso Installer

Or 2) provide a quick guide on howto edit the /usr/bin/holoiso_installer script for enabling installation on a partition instead of the full drive

Thanks in advance!

@boredpengu
Copy link
Author

In this Post @JongAnYoo reports to have solved the problem via option 2) and shows the result in his Video

@xkeyC
Copy link

xkeyC commented Jun 1, 2024

https://github.com/HoloISO/holoiso-installer/blob/main/usr/bin/holoiso_installer#L61

I did this by manually executing the commands in the installation script.

	parted ${DEVICE} mkpart primary fat32 2M 256M
	parted ${DEVICE} mkpart primary btrfs 256M 15G
    parted ${DEVICE} mkpart primary ext4 15G 16G
    parted ${DEVICE} mkpart primary ext4 16G 100%
	root_partition="${INSTALLDEVICE}2"
    var_partition="${INSTALLDEVICE}3"
    home_partition="${INSTALLDEVICE}4"
	mkfs -t vfat ${INSTALLDEVICE}1
	fatlabel ${INSTALLDEVICE}1 holo_efi
	mkfs -t btrfs -f ${root_partition}
	btrfs filesystem label ${root_partition} holo_root
    mkfs.ext4 -F ${var_partition}
    e2label ${var_partition} holo_var
    mkfs.ext4 -F ${home_partition}
    e2label ${home_partition} holo_home

If you have experience with parted or cfdisk, perform the above partitioning operations manually and assign the corresponding label.

Then replace the content in ${} and execute the subsequent code.

    sync && udevadm trigger
    holoiso_bootstrap --username "${HOLOUSER}" --password "${HOLOPASS}" --root_password "${ROOTPASS}"

@EX539
Copy link

EX539 commented Jul 20, 2024

In this Post @JongAnYoo reports to have solved the problem via option 2) and shows the result in his Video

He decided to show the result but he didn't show how to reach it.
May you explain me more?
Also, which version did he use in the video?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants