How to install Clear Linux to separate partition without installing the boot loader?

Can I install Clear Linux to a separate free partition?
Can I not install grub from Clear Linux?
If this can’t be done from the Installer, can I install Clear Linux through chroot to a free partition?

This is what the how-to says,

Clear Linux OS allows installation alongside another OS. Typically, when you boot your system, you can press an F key to view and select a bootable device or partition during the BIOS POST stage. Some BIOSes present the Clear Linux OS partition, and you can select and boot it. However, other BIOSes may only show the primary partition, in which case you will not be able boot Clear Linux OS. Be aware of this possible limitation.

but, it is not clear, what the installer would do.

After reading through the, I don’t want the Clear Linux Installer to touch the boot partition at all. Looks pretty menacing. Is there a way to disable that?

It needs unpartitioned space, not “an empty partition”, currently.

Yes, read man swupd and pay attention to the os-install section. Note: you will manually need to setup bootloader and kernel this way.

OK. Thanks. Will do tomorrow. Good night!

Couldn’t fathom how to install Clear Linux to sda7 (for example) through swupd from the live-desktop. What might be the full command in swupd to do that?

I also read the bare-metal-install-server. Can I bypass the ef00 - EFI System and
8200 - Linux swap in that and install only to 8300 - Linux filesystem? Would the clr-installer allow me to do that? In both ways of installing, it appears that installing CLR_Boot is destructive. Why can’t the installer write the EFI boot file alongside the others?

The clr-installer doesn’t see a usb stick, so it can’t be installed to a usb stick. It only sees sda. Won’t allow to be installed without CLR-BOOT and CLR-SWAP.
Can anyone give me any answer, please?

I was having a similar issue with the installer not recognizing an M2 ssd. What eventually worked for me was to completely clear the ssd including the boot table, then make a small (4 gb) fat32 partition with GPT and leave the rest unformatted. The disk had been GPT and most of the disk had been unformatted before, so I have no idea what really changed to allow the installer to see the disk, but might be worth trying.

I am not going to discard already working distros to try another distro. If there’s no installer that can’t install Clear Linux alongside others, including Windows 10, there’s no use installing it. There should be an option not to install any boot loader, at least. Then, we can use Grub that’s already there. Or the installer should add the Clear Linux boot loader folder in the existing boot partition. Many would try the live iso, and never install it. I’ll wait, until Clear Linux finds a better installer to install it to a computer, but try your method on a usb stick, that is, if it works.

I don’t follow the feature development for clr-installer. This is certainly on the feature request list, but as features go, they are implemented on a priority basis and you’d have to follow the repo or file an issue there to track it.

The method I proposed (using swupd directly) bypasses the installer entirely and would allow you to do exactly what you are asking for.

Sometimes, I enjoy my weekends and spend it outside. If you do ask questions on a Sunday, you might find that we’re not actually working. I was actually in my chicken coop yesterday, for instance.

Can you give me the swupd command?


First, become root and create your partition and format it appropriately (e.g. mkfs.ext4) first.

Second, mount the partition. mount /dev/sdq32 /mnt

Third, run: swupd os-install /mnt --bundles=os-core,os-core-update,kernel-native

You can change the list of bundles, but, this is a good start. You can find the kernel image under /mnt/usr/lib/kernel - you can use this to use the bootloader from another OS, for instance.

1 Like

Thank you! :smile:
Will try this out.

Well, can’t be done from live usb,

Warning: Write failed
Warning: No space left on device
Error: Curl - Error downloading to local file - ‘
Error: Curl - Check free space for /var/lib/swupd?

Try setting the statedir inside of the target partition:

swupd os-install /mnt --bundles=os-core,os-core-update,kernel-native --statedir=/mnt/var/lib/swupd