diff --git a/modules/system/boot/stage-1.nix b/modules/system/boot/stage-1.nix index 95b5372a5155..0480a277afdf 100644 --- a/modules/system/boot/stage-1.nix +++ b/modules/system/boot/stage-1.nix @@ -243,7 +243,11 @@ let --replace /sbin/blkid ${extraUtils}/bin/blkid done - # !!! What does this do? + # Remove rule preventing creation of a by-label symlink + # for a CD-ROM if disk removal will not be properly reported. + # Such a link can get obsolete in a running system, but + # during boot stage 1 it is unlikely. We need this change + # to be able to boot on a wider choice of CD drives. sed -e '/^ENV[{]DEVTYPE[}]=="disk", .*GOTO/d' -i $out/60-persistent-storage.rules ''; # */ };