From 769dc2f7e645c750a23b4874ccf13a2cc942bf41 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Wed, 19 Aug 2009 17:24:33 +0000 Subject: [PATCH] Write an explanation for a rule edit needed by LiveCD svn path=/nixos/trunk/; revision=16774 --- modules/system/boot/stage-1.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/system/boot/stage-1.nix b/modules/system/boot/stage-1.nix index 95b5372a515..0480a277afd 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 ''; # */ };