the path changed to not include serial8250 directly anymore in jammy
kernel and we just don't really care, not much winning by dying here
if the base ttyS1 dev exists..
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
bail!("/sbin/agetty not found, probably not running debug mode and safe to ignore");
}
- if !PathBuf::from("/sys/class/tty/ttyS1/device/driver/serial8250").exists() {
- bail!("ttyS1 device does not exist or is not a 8250");
+ if !PathBuf::from("/sys/class/tty/ttyS1").exists() {
+ bail!("ttyS1 device does not exist");
}
let dev = fs::read_to_string("/sys/class/tty/ttyS1/dev")?;