]> git.proxmox.com Git - proxmox-backup-restore-image.git/commitdiff
init shim: drop ttyS1 driver check
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 15 Nov 2022 16:08:31 +0000 (17:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 15 Nov 2022 16:15:02 +0000 (17:15 +0100)
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>
src/init-shim-rs/src/main.rs

index 36c662fc2f0958f6f87b9829da7ffed234e5709f..a6e093c91061019631cab9b852d24df1db1315d8 100644 (file)
@@ -49,8 +49,8 @@ fn run_agetty() -> Result<(), Error> {
         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")?;