[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#397668: reports error after reading the preseed file



Op 08-11-2006 om 14:15 schreef Stephen Frazier:
>  When I press alt-F4 it show that a remove command failed after reading the file.
   <snip/> 
> System log from the time of the error.
> Nov  1 22:45:40 cdrom-detect: Detected CD 'Debian GNU/Linux testing "Etch" - Official Snapshot i386 Binary-1 (20061031)'
   <snip/>
> Nov  1 22:45:45 preseed: successfully loaded preseed file from floppy:///preseed.txt
> Nov  1 22:45:46 main-menu[2307]: (process:6907): rm:
> Nov  1 22:45:46 main-menu[2307]: (process:6907): cannot remove `/var/run/usedfloppy'
> Nov  1 22:45:46 main-menu[2307]: (process:6907): : No such file or directory
> Nov  1 22:45:46 main-menu[2307]: WARNING **: Configuring 'file-preseed' failed with error code 1
> Nov  1 22:45:46 main-menu[2307]: WARNING **: Menu item 'file-preseed' failed.

stappers@bahrain:/usr/src/debian-installer/packages/preseed
$ find . -type f | xargs grep usedfloppy | grep -v /.svn/
./debian/file-preseed.postinst:if [ -e /var/run/preseed-usedfloppy ];
then
./debian/file-preseed.postinst: rm /var/run/usedfloppy
./debian/file-preseed/DEBIAN/postinst:usedfloppy=
./debian/file-preseed/DEBIAN/postinst:          usedfloppy=1
./debian/file-preseed/DEBIAN/postinst:if [ "$usedfloppy" ]; then
./fetch-methods/floppy: touch /var/run/preseed-usedfloppy

So we have 'preseed-usedfloppy' and 'usedfloppy'.

Because I prefer the one with "preseed"
I suggest this patch:

stappers@bahrain:/usr/src/debian-installer/packages/preseed
$ svn diff debian/file-preseed.postinst
Index: debian/file-preseed.postinst
===================================================================
--- debian/file-preseed.postinst        (revision 42180)
+++ debian/file-preseed.postinst        (working copy)
@@ -16,5 +16,5 @@
 # check if fetch-method/floppy has set a flag
 if [ -e /var/run/preseed-usedfloppy ]; then
        umount /floppy || true
-       rm /var/run/usedfloppy
+       rm /var/run/preseed-usedfloppy
 fi



Geert Stappers
(currently with broken svn access)



Reply to: