Comments (3)
I'm thinking about allowing -
instead of :
as well. This would be a relatively simple change in init.resizefs
, even when we want backwards compatibility. Something to the extent of:
MY_MAC=$(cat /sys/class/net/eth0/address)
if [ -r "/k3os/system/config/${MY_MAC}.yaml" ]; then
ln -s /k3os/system/config/${MY_MAC}.yaml /k3os/system/config.yaml
else
MY_MAC=$(cat $MY_MAC | sed 's/:/-/')
if [ -r "/k3os/system/config/${MY_MAC}.yaml" ]; then
ln -s /k3os/system/config/${MY_MAC}.yaml /k3os/system/config.yaml
else
echo "Error..."
exit 1
fi
fi
Then, we'd update documentation to indicate that : and - are both allowed in the config filenames. Would you like to give this a try?
from picl-k3os-image-generator.
you have an error in your script, the sed command only replace the first :
, this is what i've used successfully.
MY_MAC=$(cat /sys/class/net/eth0/address)
if [ -r "/k3os/system/config/${MY_MAC}.yaml" ]; then
ln -s /k3os/system/config/${MY_MAC}.yaml /k3os/system/config.yaml
else
MY_MAC=$(echo $MY_MAC | sed 's/:/-/g')
if [ -r "/k3os/system/config/${MY_MAC}.yaml" ]; then
ln -s /k3os/system/config/${MY_MAC}.yaml /k3os/system/config.yaml
else
echo "Error..."
exit 1
fi
fi
Off topic but in my fork i also changed the build script to be executable from docker compose, with a download cache as a volume should these feature are interesting to anyone. This way, you don't have to rebuild the docker image to generate your isos.
Otherwise this all works really great thanks for the project @sgielen
from picl-k3os-image-generator.
Closing all issues, because the project is archived. Thank you for being a contributor and/or user!
from picl-k3os-image-generator.
Related Issues (20)
- Odroid HC1/XU4 HOT 5
- Add dockerfile? HOT 7
- Perform an fsck of the root filesystem before booting k3os
- Log2Ram HOT 1
- Question: RPi4 Netboot HOT 3
- Unable to boot newly created image HOT 15
- How to correctly fix init.resizefs when booting rpi from ssd HOT 6
- Build docker image containing all scripts HOT 1
- Issue Installing HOT 2
- k3s not running on Raspberry Pi 3B HOT 3
- [Question] Is there a way to add binaries ? HOT 2
- Cannot boot from USB on Raspberry Pi 4 HOT 2
- Slow CPU performance? HOT 5
- docker image no longer available HOT 1
- KVM and Wireguard modules HOT 3
- Poe Hat fan support HOT 4
- CNI like Cilium won't on k3os run using the official firmware pulled HOT 1
- RPi-Distro renamed master to buster HOT 4
- Broken Build script HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from picl-k3os-image-generator.