but 25afe9fec7 breaks systems witzh automount! now both should work.

memory-manager
ondra05 2022-12-23 22:55:38 +01:00
parent 10a3512d60
commit aae05daf17
1 changed files with 26 additions and 10 deletions

View File

@ -151,11 +151,19 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.build()?;
// Mount the filesystem
let mountpoint = fsproxy.mount(MountOptions {
no_user_interaction: true,
fs_type: String::new(),
mount_options: String::new(),
})?;
let mountpoint = fsproxy
.mount(MountOptions {
no_user_interaction: true,
fs_type: String::new(),
mount_options: String::new(),
})
.or_else(|_| {
Ok::<String, zbus::Error>(loop {
if let Some(m) = fsproxy.mount_points()?.get(0) {
break m.to_string();
}
})
})?;
// copy ./base/* over to ./disk
Command::new("sh")
@ -373,11 +381,19 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.build()?;
// Mount the filesystem
let mountpoint = fsproxy.mount(MountOptions {
no_user_interaction: true,
fs_type: String::new(),
mount_options: String::new(),
})?;
let mountpoint = fsproxy
.mount(MountOptions {
no_user_interaction: true,
fs_type: String::new(),
mount_options: String::new(),
})
.or_else(|_| {
Ok::<String, zbus::Error>(loop {
if let Some(m) = fsproxy.mount_points()?.get(0) {
break m.to_string();
}
})
})?;
// copy the kernel over to ./disk/boot/kernel
Command::new("cp")