Comments (5)
I added a pull request: #56 which should provide support for either /dev/disk/by-id/<id>
or /dev/disk/by-id/wwn-<xx>
.
Without this addition, a automated installation by using the autoconfig
feature is a gamble when intending to make use of two out of 3 disk - as the names may change between different reboots.
It only handles the device names used for software raid though - so there is no improvement when using plain disks,
from installimage.
I'm aware that the kernel adds devices in a nondeterministic order; that's why I'm asking for a way to use WWNs. Installing a bootloader on every disk won't help when installimage gives us a system fstab that refers to devices by their non-deterministic names, e.g. /dev/sdb2 none swap sw 0 0
.
from installimage.
The kernel does not guarantee the order in which devices are detected. Hence even if you manage to get this working the way you want it, the next kernel upgrade or even after a reboot, the order might change again.
The proper way to deal with this scenario is to also install the bootloader also the data drives. This can be done via a post-install skript, e.g
#!/bin/bash
for i in sdb sdc sdd; do
sgdisk -Z /dev/$i
sgdisk --new 1:2048:+1M -t 1:EF02 /dev/$i
grub-install /dev/$i
done
This will create a 1M bios_grub partition on each drive and installs grub in the MBR and the partition
from installimage.
For me the experience was that everything worked out fine, BUT the software raid. @ableischwitz PRs seemed to have the fix in the place that was broken for me.
mkswap
is failing for me, but I do not know why:
[22:30:32] : mkswap: cannot open /dev/disk/by-id/ata-SAMSUNG_XXXX-part1: Device or resource busy
I think it might be the software raid sync blocking the formatting, which is kinda weird.
The order should be create partitions -> create raid, shouldn't it?
I copied the whole installimage into my home folder in the rescue system to apply the patch from @ableischwitz . Maybe that confuses the script somehow 🤷
from installimage.
Found the error. The script could not replace the fstab
entries and therefore tried to format the underlying drive instead of the raid arrays.
#92 should hit all the right points.
I copied the whole installimage into my home folder in the rescue system to apply the patch from @ableischwitz . Maybe that confuses the script somehow 🤷
About this. It does not. Just be sure to call installimage
with an absolute path. Else it WILL get confused, because the script will switch into a temporary directory for most of its work. :)
from installimage.
Related Issues (20)
- Ubuntu22.04 not using the rescue system credentials HOT 3
- Support ZFS HOT 2
- On RX220 installimage does not create /boot/efi esp partition as raid1 HOT 3
- ERROR: ESP missing or multiple ESP found HOT 4
- REGRESSION: encrypted btrfs root filesystem fails -- but worked before (for sure at commit 84883ef) HOT 1
- Boot and root do not need to be outside LVM
- support for ClearLinux
- Support for Fedora CoreOS HOT 7
- Add support btrfs multi-device HOT 2
- syntax error when trying to setup LUKS HOT 1
- btrfs with compression triggers CRYPTPASSWORD message (Debian 12)
- Various syntax errors when trying to install from a URL HOT 2
- Rocky Linux 9, AlmaLinux 9, and CentOS Stream 9 UEFI Support HOT 1
- netplan error: gateway6 has been deprecated with latest ubuntu 20.04 image HOT 2
- Setup guide for installimage HOT 6
- installimage version on Server (via NFS) is different HOT 3
- Problem with custom image and locale setup
- UEFI installation doesn't create RAID1 for ESP partition HOT 6
- ERROR: can not determine image arch from filename HOT 3
- Unable to setup machine via cli arguments (only via editing the config file) HOT 1
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 installimage.