mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
installer: Ensure to always create the /boot directory.
Ensure to always create the /boot directory during the mounting of the various created file systems. If the /boot directory does not exist some following mount operations could not be performed correctly and the installation/mounting will fail. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
4305e02d79
commit
fbeac0960a
@@ -904,10 +904,16 @@ int hw_mount_filesystems(struct hw_destination* dest, const char* prefix) {
|
|||||||
return r;
|
return r;
|
||||||
|
|
||||||
// boot
|
// boot
|
||||||
if (*dest->part_boot) {
|
snprintf(target, sizeof(target), "%s%s", prefix, HW_PATH_BOOT);
|
||||||
snprintf(target, sizeof(target), "%s%s", prefix, HW_PATH_BOOT);
|
r = mkdir(target, S_IRWXU|S_IRWXG|S_IRWXO);
|
||||||
mkdir(target, S_IRWXU|S_IRWXG|S_IRWXO);
|
|
||||||
|
|
||||||
|
if (r) {
|
||||||
|
hw_umount_filesystems(dest, prefix);
|
||||||
|
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (*dest->part_boot) {
|
||||||
r = hw_mount(dest->part_boot, target, filesystem, 0);
|
r = hw_mount(dest->part_boot, target, filesystem, 0);
|
||||||
if (r) {
|
if (r) {
|
||||||
hw_umount_filesystems(dest, prefix);
|
hw_umount_filesystems(dest, prefix);
|
||||||
|
|||||||
Reference in New Issue
Block a user