Skip to content

Fix bootstrapCD: CDROOT_TYPE parameter should not be modified in the loop.#64

Open
rgiuse wants to merge 1 commit intogentoo:masterfrom
rgiuse:fix-bootstrapCD
Open

Fix bootstrapCD: CDROOT_TYPE parameter should not be modified in the loop.#64
rgiuse wants to merge 1 commit intogentoo:masterfrom
rgiuse:fix-bootstrapCD

Conversation

@rgiuse
Copy link

@rgiuse rgiuse commented Mar 2, 2026

Actually the function determine_fs return the last valid filesystem type was mounted, instead of the original requested parameter, when it fails to detect the device’s actual filesystem type.
That can cause mount to be called with the wrong -t value.
We need use a temp variables and preserve the original filesystem type parameter.

Successful or partial successful mount exit codes:

0 → success
64 → partial success

Therefore, you need to test the mount result, in both cases.

when determine_fs don't found the fs type of device return the last input value
( last valid once ) and not the original parameter.
So the mount can fail.

mount command success exit code are:

success		0
partial success 64

we need test the mount in any case.

	modified:   defaults/initrd.scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant