SliTaz SliTaz Forum

You are not logged in.

#1 2015-01-07 21:39:25

Thriftee
Member
Registered: 2014-09-22
Posts: 31

5.0 cooking Grub2 comes up with SliTaz as "unknown"

I looked at the os-prober code and found that if I was to put a text file in as follows, it will find it and configure correctly.  Because my linux scripting is new, it took 3 hours and I'm sure you guys could do it better, but at least it works so I can tell what os is on the partition.  It won't let me upload the script as a file, so I'll paste it in here.

[c]#!/bin/sh

echo "init-slackware-version - Initializes /etc/slackware-version file so that"
echo "  os-prober will find it and use it to label slitaz better.  The script"
echo "  needs to be executed with authority to create/overwite in /etc"
release=<code>cat /etc/slitaz-release</code>
echo "slitaz release is: $rel"
uname -a | awk -v rel="$release" '{print $1 " " $2 " " rel " " $3 " Kernel"}' > /etc/slackware-version[/c]

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.022 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]