<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3793&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / (solved) grub custom menu for other distro using F2FS filesystem.]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3793</link>
		<description><![CDATA[The most recent posts in (solved) grub custom menu for other distro using F2FS filesystem..]]></description>
		<lastBuildDate>Wed, 02 Sep 2020 11:53:50 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: (solved) grub custom menu for other distro using F2FS filesystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24407#p24407</link>
			<description><![CDATA[<p>Yeah i could have artix take over boot management but too many missions and i want to have devuan be the main stable os and not introduce anything from unstable. I was basically wanting to see how well f2fs would run on a partition using artix, ive since deleted the artix partition, so&#160; problem solved <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" />. Thanks for your input.</p>]]></description>
			<author><![CDATA[dummy@example.com (HevyDevy)]]></author>
			<pubDate>Wed, 02 Sep 2020 11:53:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24407#p24407</guid>
		</item>
		<item>
			<title><![CDATA[Re: (solved) grub custom menu for other distro using F2FS filesystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24405#p24405</link>
			<description><![CDATA[<p>No, the GRUB version in beowulf doesn&#039;t support f2fs.</p><div class="quotebox"><cite>HevyDevy wrote:</cite><blockquote><div><p>I wonder if there is a workaround? I tried copying to the custom grub menu the entry that artix linux creates and it complains of not having <span class="bbc">/boot/grub/i386-pc/f2fs.mod</span> loaded (and yes i do have f2fs-tools installed in devuan and artix), so i wonder if i could just move that module there into stable grub</p></div></blockquote></div><p>I was thinking about suggesting that but a better solution is probably to just install GRUB in Artix instead of Devuan. The only problem with that is having to manually update the configuration every time the kernel version in Devuan changes.</p><p>Another alternative is to install Artix&#039;s GRUB version in Devuan by running these commands from Artix:</p><div class="codebox"><pre><code># mount /dev/sda1 /mnt
# pacman -S grub
# grub-install --target=i386-pc --boot-directory=/mnt /dev/sda</code></pre></div><p>Then remove the grub-pc package in Devuan but keep the grub2-common package installed so that the configuration file is updated every time the kernel version changes:</p><div class="codebox"><pre><code># apt install grub-pc- grub2-common</code></pre></div><p>And yet another alternative is to backport the grub-pc, grub-common &amp; grub2-common packages from ceres.</p><p>I presume this is a non-UEFI system?</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Tue, 01 Sep 2020 17:11:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24405#p24405</guid>
		</item>
		<item>
			<title><![CDATA[Re: (solved) grub custom menu for other distro using F2FS filesystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24404#p24404</link>
			<description><![CDATA[<div class="quotebox"><cite>HevyDevy wrote:</cite><blockquote><div><p>After doing some digging, looks like i may be right. grub2 version 2.04 brings support for <strong>f2fs</strong> but that is currently in testing.</p></div></blockquote></div><p>Off topic but I once tried f2fs on a micro-SD card mounted on one of my OpenWRT devices&#160; Found it extremely slow, CPU intensive and therefore unusable. Switched back to ext4. Have been running both RaspberryPis and micro-routers out of ext4 formatted SD/micro-SD cards for years without any issues. Note that most smart phones have a lot more horse power than my micro router with a MIPS 260Mhz 32 bit CPU and 32Mb of RAM.</p>]]></description>
			<author><![CDATA[dummy@example.com (Vernon)]]></author>
			<pubDate>Tue, 01 Sep 2020 15:50:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24404#p24404</guid>
		</item>
		<item>
			<title><![CDATA[Re: (solved) grub custom menu for other distro using F2FS filesystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24403#p24403</link>
			<description><![CDATA[<p>After doing some digging, looks like i may be right. grub2 version 2.04 brings support for f2fs but that is currently in testing.<br />I wonder if there is a workaround? I tried copying to the custom grub menu the entry that artix linux creates and it complains of not having <span class="bbc">/boot/grub/i386-pc/f2fs.mod</span> loaded (and yes i do have f2fs-tools installed in devuan and artix), so i wonder if i could just move that module there into stable grub, probably break something though.</p><p><a href="https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1868664" rel="nofollow">https://bugs.launchpad.net/ubuntu/+sour … ug/1868664</a></p><p><a href="https://salsa.debian.org/grub-team/grub/-/commit/146d21cc9db01cca6f945e466e4adc31d165782b" rel="nofollow">https://salsa.debian.org/grub-team/grub … 31d165782b</a></p><p><a href="https://packages.debian.org/search?keywords=grub2" rel="nofollow">https://packages.debian.org/search?keywords=grub2</a></p><p>This is the custom grub menu in <span class="bbc">/etc/grub.d/40_custom</span>&#160; im using.</p><div class="codebox"><pre><code>#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the &#039;exec tail&#039; line above.

menuentry &#039;Artix Linux&#039; --class artix --class gnu-linux --class gnu --class os $menuentry_id_option &#039;gnulinux-simple-&lt;UUID&gt;&#039; {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod f2fs
        set root=&#039;hd0,msdos3&#039;
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275=&#039;ieee1275//disk@0,msdos3&#039; --hint-bios=hd0,msdos3 --hin
t-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  &lt;UUID&gt;
        else
          search --no-floppy --fs-uuid --set=root &lt;UUID&gt;
        fi
        echo    &#039;Loading Linux linux-lts ...&#039;
        linux   /boot/vmlinuz-linux-lts root=UUID=&lt;UUID&gt; rw  loglevel=3 quiet
        echo    &#039;Loading initial ramdisk ...&#039;
        initrd  /boot/initramfs-linux-lts.img
}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (HevyDevy)]]></author>
			<pubDate>Tue, 01 Sep 2020 07:47:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24403#p24403</guid>
		</item>
		<item>
			<title><![CDATA[Re: (solved) grub custom menu for other distro using F2FS filesystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24401#p24401</link>
			<description><![CDATA[<p>No luck, i think its the f2fs filesystem im trying to use is not compatible with devuan/debians grub.</p><p>I can install artix grub from a chroot on the artix partition and update grub there and boot into artix fine, but if i try the custom menu entry it just says filesytem not found so im pretty sure its a grub devuan issue.</p>]]></description>
			<author><![CDATA[dummy@example.com (HevyDevy)]]></author>
			<pubDate>Tue, 01 Sep 2020 02:09:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24401#p24401</guid>
		</item>
		<item>
			<title><![CDATA[Re: (solved) grub custom menu for other distro using F2FS filesystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24396#p24396</link>
			<description><![CDATA[<div class="quotebox"><cite>HevyDevy wrote:</cite><blockquote><div><p>when i update-grub there but this is not the case as update-grub just finds unknown linux distro and it dont boot</p></div></blockquote></div><p>Devuan&#039;s GRUB can&#039;t deal with the multiple initramfs images that are created in Arch-based distribustions if the CPU µcode package is installed.</p><p>If you post the actual /boot/grub/grub.cfg file then we could confirm if this is the problem here.</p><div class="quotebox"><cite>HevyDevy wrote:</cite><blockquote><div><p>In<span class="bbc"> /etc/grub.d/40_custom</span></p><div class="codebox"><pre><code>menuentry &quot;Artix&quot; {
	set root=(hd0,3)
	 linux /boot/vmlinuz-linux-lts
	 initrd /boot/initramfs-linux-lts.img
}</code></pre></div></div></blockquote></div><p>You need to pass the location of the root partition to the kernel and it&#039;s best to identify it with a UUID because the block device assignment might change from one boot to the next.</p><p>Try something like this (replace <span class="bbc">$uuid</span> with the actual UUID for the Artix root partition):</p><div class="codebox"><pre><code>menuentry &#039;Artix&#039; {
   search --fs-uuid --set=root $uuid
   linux /boot/vmlinuz-linux-lts root=UUID=$uuid rw quiet # add any other boot parameters here
   initrd /boot/intel-ucode.img /boot/initramfs-linux-lts.img
}</code></pre></div><p>^ That presumes the <a href="https://www.archlinux.org/packages/extra/any/intel-ucode/" rel="nofollow">intel-ucode</a> package is installed, check /boot in Artix for the actual initramfs images and adjust as required.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 31 Aug 2020 13:38:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24396#p24396</guid>
		</item>
		<item>
			<title><![CDATA[(solved) grub custom menu for other distro using F2FS filesystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24395#p24395</link>
			<description><![CDATA[<p>Not real sure how to do this, i want to create custom boot menu for another linux (artix linux) that will be installed alongside devuan.<br />Current setup is.</p><p>Devuan boot parttion = /dev/sda1<br />Devuan root partition = /dev/sda2<br />Artix&#160; on /dev/sda3</p><p>This is because i may have stuffed up installing artix or something is missing im not getting.</p><p>When i installed artix i only mounted sda3 to /mnt and not the devuan sda1 partition for the boot loader. My thinking was grub and os-prober would pick up /dev/sda3 as artix inside devuan when i update-grub there but this is not the case as update-grub just finds unknown linux distro and it dont boot.</p><p>So my thinking is maybe i could create boot menu like so below but even this does not seem to work.</p><p>In<span class="bbc"> /etc/grub.d/40_custom</span></p><div class="codebox"><pre><code>menuentry &quot;Artix&quot; {
	set root=(hd0,3)
	 linux /boot/vmlinuz-linux-lts
	 initrd /boot/initramfs-linux-lts.img
}</code></pre></div><p>This might all be stupid and ive stuffed up and should have mounted /dev/sda1 as /mnt/boot when pacstrap the install to begin with?</p>]]></description>
			<author><![CDATA[dummy@example.com (HevyDevy)]]></author>
			<pubDate>Mon, 31 Aug 2020 13:02:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24395#p24395</guid>
		</item>
	</channel>
</rss>
