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

Bug#779208: debian-installer: Remove /dev/sdX installer entry from fstab



Package: debian-installer
Severity: important
Tags: d-i

Hello,

I noticed that debian-installer leaves a /dev/sdX entry in /etc/fstab inside the newly installed system. This entry corresponds to the medium that Debian was installed from. In my case, I just installed Debian stable on one of our servers (not the machine I am writing from, so please disregard the System Information below). The installer left these lingering entries on fstab:

#/dev/sdc1       /media/usb0     auto    rw,user,noauto  0       0
#/dev/sdc2       /media/usb1     auto    rw,user,noauto  0       0

It was a machine with several hard drives and RAID. Installing a later kernel from backports and rebooting the system made it unable to mount / and /swap, until we finally booted from the old kernel and removed these entries.

I've seen various other issues emerge from this issue, one example is here:
http://forums.debian.net/viewtopic.php?t=65395

It might have an easy workaround, but I believe that the entries that correspond to the installer should be removed from /etc/fstab when debian-installer is still running and right before it boots into the new system.

Also, please disregard the system information below, the machine that the issue appeared in is:
# uname -a
Linux tourbina 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt4-3~bpo70+1 (2015-02-12) x86_64 GNU/Linux
# cat /etc/debian_version 
7.8
# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Mar  1  2012 /bin/sh -> dash
# echo $LANG
en_US.UTF-8
# echo $LC_CTYPE
el_GR.UTF-8
# ps -eo pid,comm |head
  PID COMMAND
    1 init

Best regards,

Vivia

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (700, 'unstable'), (600, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


Reply to: