forked from koniifer/ableos
but 558fc6da59
breaks systems witzh automount! now both should work.
This commit is contained in:
parent
3414b40da8
commit
eae5979921
|
@ -151,10 +151,18 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
.build()?;
|
||||
|
||||
// Mount the filesystem
|
||||
let mountpoint = fsproxy.mount(MountOptions {
|
||||
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
|
||||
|
@ -373,10 +381,18 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
.build()?;
|
||||
|
||||
// Mount the filesystem
|
||||
let mountpoint = fsproxy.mount(MountOptions {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue