Skip to content

Commit 30da214

Browse files
committed
fixed installation being stuck at 95%
1 parent 131d715 commit 30da214

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

eclipse-installer/src/install.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,9 @@ menuentry "Eclipse Linux (recovery)" {{
642642
fn build_initramfs(kver: &str) -> Result<(), String> {
643643
log::log("Building installed initramfs...");
644644

645-
let output = run_cmd("mktemp", &["-d"])?;
645+
// Create staging dir on the target disk, not /tmp (which is a tiny
646+
// tmpfs on the live ISO and cannot hold the kernel modules tree).
647+
let output = run_cmd("mktemp", &["-d", "-p", TARGET_MNT])?;
646648
let staging = String::from_utf8_lossy(&output.stdout).trim().to_string();
647649
log::log(&format!("Initramfs staging dir: {}", staging));
648650

0 commit comments

Comments
 (0)