Skip to content

Commit 6af0d62

Browse files
committed
/target
1 parent 5d8ffb9 commit 6af0d62

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

build_seed.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ set -euxo pipefail
77
cd $SCRIPT_DIR
88

99
podman build -t bootcseed -f Containerfile .
10-
podman tag bootcseed:latest quay.io/otuchfel/bootc:seed5
11-
podman push quay.io/otuchfel/bootc:seed5
10+
podman tag bootcseed:latest quay.io/otuchfel/bootc:seed6
11+
podman push quay.io/otuchfel/bootc:seed6

lib/src/install.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -1597,20 +1597,20 @@ fn remove_all_in_dir_no_xdev(d: &Dir, mount_err: bool) -> Result<()> {
15971597

15981598
#[context("Removing boot directory content")]
15991599
fn clean_boot_directories(rootfs: &Dir) -> Result<()> {
1600-
let bootdir =
1601-
crate::utils::open_dir_remount_rw(rootfs, BOOT.into()).context("Opening /boot")?;
1602-
// This should not remove /boot/efi note.
1603-
remove_all_in_dir_no_xdev(&bootdir, false)?;
1604-
// TODO: Discover the ESP the same way bootupd does it; we should also
1605-
// support not wiping the ESP.
1606-
if ARCH_USES_EFI {
1607-
if let Some(efidir) = bootdir
1608-
.open_dir_optional(crate::bootloader::EFI_DIR)
1609-
.context("Opening /boot/efi")?
1610-
{
1611-
remove_all_in_dir_no_xdev(&efidir, false)?;
1612-
}
1613-
}
1600+
// let bootdir =
1601+
// crate::utils::open_dir_remount_rw(rootfs, BOOT.into()).context("Opening /boot")?;
1602+
// // This should not remove /boot/efi note.
1603+
// remove_all_in_dir_no_xdev(&bootdir, false)?;
1604+
// // TODO: Discover the ESP the same way bootupd does it; we should also
1605+
// // support not wiping the ESP.
1606+
// if ARCH_USES_EFI {
1607+
// if let Some(efidir) = bootdir
1608+
// .open_dir_optional(crate::bootloader::EFI_DIR)
1609+
// .context("Opening /boot/efi")?
1610+
// {
1611+
// remove_all_in_dir_no_xdev(&efidir, false)?;
1612+
// }
1613+
// }
16141614
Ok(())
16151615
}
16161616

0 commit comments

Comments
 (0)