forked from koniifer/ableos
Stop assuming that udisks2 automatically mounted filesystem
This commit is contained in:
parent
e796a05ddf
commit
558fc6da59
|
@ -147,12 +147,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
.path(&filesystem)?
|
.path(&filesystem)?
|
||||||
.build()?;
|
.build()?;
|
||||||
|
|
||||||
// Obtain mountpoint
|
// Mount the filesystem
|
||||||
let mountpoint = loop {
|
let mountpoint = fsproxy.mount(MountOptions {
|
||||||
if let Some(m) = fsproxy.mount_points()?.get(0) {
|
no_user_interaction: true,
|
||||||
break m.to_string();
|
fs_type: String::new(),
|
||||||
}
|
mount_options: String::new(),
|
||||||
};
|
})?;
|
||||||
|
|
||||||
// copy ./base/* over to ./disk
|
// copy ./base/* over to ./disk
|
||||||
Command::new("sh")
|
Command::new("sh")
|
||||||
|
@ -363,12 +363,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
.path(&parts[0])?
|
.path(&parts[0])?
|
||||||
.build()?;
|
.build()?;
|
||||||
|
|
||||||
// Obtain mountpoint
|
// Mount the filesystem
|
||||||
let mountpoint = loop {
|
let mountpoint = fsproxy.mount(MountOptions {
|
||||||
if let Some(m) = fsproxy.mount_points()?.get(0) {
|
no_user_interaction: true,
|
||||||
break m.to_string();
|
fs_type: String::new(),
|
||||||
}
|
mount_options: String::new(),
|
||||||
};
|
})?;
|
||||||
|
|
||||||
// copy the kernel over to ./disk/boot/kernel
|
// copy the kernel over to ./disk/boot/kernel
|
||||||
Command::new("cp")
|
Command::new("cp")
|
||||||
|
|
Loading…
Reference in a new issue