Differences between revisions 10 and 26 (spanning 16 versions)
Revision 10 as of 2007-06-13 19:38:07
Size: 1203
Editor: ?FransPop
Comment: Add reference to private branch for rootskel
Revision 26 as of 2009-09-17 01:40:09
Size: 3699
Editor: GeoffSimmons
Comment: DebianBug, DebianPts
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
 * Busybox  * DebianPts:busybox '''uploaded'''
Line 5: Line 5:
   [http://packages.qa.debian.org/busybox busybox] is currently built with CONFIG_FEATURE_DEVFS activated.    DebianPts:busybox was built with CONFIG_FEATURE_DEVFS activated.
Line 11: Line 11:
   Current d-i works correctly with modified busybox on i386.    Current d-i and g-i work correctly with modified busybox on i386, provided the changes listed below for other components are also included.
Line 13: Line 13:
 * Remove devfs.rules and compat-full.rules in [http://packages.qa.debian.org/udev udev]  * DebianPts:udev '''see DebianBug:431556'''
   * Remove devfs.rules and compat-full.rules
   * Add z10_input.rules to create input device nodes in /dev/input (required for g-i)
Line 17: Line 19:
 * Change {{{/etc/inittab}}} in rootskel to use tty2-tty4 for debug shells and syslog. After the switch any support for {{{/dev/vc/*}}} can be dropped.[[BR]]See rootskel in D-I SVN under {{{people/fjp}}}.  * Change {{{/etc/inittab}}} in rootskel to use tty2-tty4 for debug shells and syslog (committed in SVN; change works with current versions of busybox/udev).<<BR>>'''uploaded'''

 * Change userdevfs to also create non-devfs device nodes (for arches that do not have a working udev ?). Missed in original analysis, but fixed in time by Colin.<<BR>>'''uploaded'''
Line 20: Line 24:
   Device files for input devices created in {{{/dev}}} instead of {{{/dev/input}}} which makes starting directfb fail. Creating symlinks in {{{/dev/input}}} fixes this. Probably a simple issue in udev-udeb.    Device files for input devices are created in {{{/dev}}} instead of {{{/dev/input}}} which makes starting directfb fail. Adding z10_input.rules in udev-udeb fixed this (see above).
Line 22: Line 26:
[[http://people.debian.org/~lunar/d-i-without-devfs/|Modified packages not in d-i tree]]:
Line 23: Line 28:
[http://people.debian.org/~lunar/d-i-without-devfs/ Modified packages not in d-i tree]:  * udev '''uploaded'''
Line 25: Line 30:
 * busybox
 * udev
== Post-switch cleanup ==

After we've switched to use "regular" device names, we should be able to clean up quite a lot of code. The list below is far from complete.

 * any references to /dev/discs/
 * rootskel: various references to {{{/dev/vc/*}}}, {{{/dev/fb/*}}} and possibly others
 * {{{/dev/md}}} should '''not''' be removed. See [[http://svn.debian.org/wsvn/pkg-mdadm/mdadm/trunk/debian/FAQ?op=file&rev=0&sc=0|mdadm FAQ]].

Impacted files:

 * {{{arch/m68k/vmelilo-installer/debian/postinst}}}
 * {{{arch/s390/dasd/dasd.c}}}
 * {{{arch/s390/zipl-installer/debian/zipl-installer.postinst}}}
 * {{{debian-installer-utils/list-devices}}}
 * {{{hw-detect/ethdetect.sh}}}
 * {{{hw-detect/hw-detect.sh}}}
 * {{{libdebian-installer/include/debian-installer.h}}}
 * {{{libdebian-installer/src/system/devfs.c}}}
 * {{{mdcfg/mdcfg.sh}}}
 * {{{mdcfg/partconf-hook.sh}}}
 * {{{partconf/README}}}
 * {{{partitioner/main.c}}}
 * {{{partman/partman-auto-raid/README}}}
 * {{{partman/partman-auto/auto-shared.sh}}}
 * {{{partman/partman-auto/auto.d/initial_auto}}}
 * {{{partman/partman-base/definitions.sh}}}
 * {{{partman/partman-crypto/crypto_tools.sh}}}
 * {{{partman/partman-crypto/update.d/crypto_visuals}}}
 * {{{partman/partman-lvm/undo.d/lvm}}}
 * {{{sarge-support/termwrap}}}
 * {{{userdevfs/S10userdevfs}}}
 * {{{userdevfs/debian/rules}}}
 * {{{userdevfs/init-dev}}}
 * {{{userdevfs/update-dev}}}

Done:

 * {{{floppy-retriever/debian/load-floppy.postinst}}}
 * {{{autopartkit/autopartkit.c}}}
 * {{{kbd-chooser/getfd.c}}}
 * {{{mountfloppy/mountfloppy}}}
 * {{{os-prober/README}}}
 * {{{os-prober/os-prober}}}
 * {{{partconf/find-parts.c}}}
 * {{{partconf/fstab-common}}}
 * {{{rootskel/src-bootfloppy/init}}}
 * {{{rootskel/src/etc/fstab}}}
 * {{{rootskel/src/init}}}
 * {{{rootskel/src/lib/debian-installer/init-udev-devices}}}
 * {{{rootskel/src/lib/debian-installer/detect-console-linux}}}
 * {{{rootskel/src/lib/debian-installer-startup.d/S01mount}}}
 * {{{rootskel/src/lib/debian-installer.d/S35framebuffer-linux}}}
 * {{{arch/i386/lilo-installer/debian/lilo-installer.templates}}}
 * {{{arch/i386/lilo-installer/debian/postinst}}}

This page describe the progress of removing usage of the obsolete devfs in the DebianInstaller.

  • busybox uploaded

    • busybox was built with CONFIG_FEATURE_DEVFS activated. It needs to be deactivated in debian/config-udeb.

      We should not have any problems in uploading this change without any specific changes in the DebianInstaller. Testing might be desirable though. Current d-i and g-i work correctly with modified busybox on i386, provided the changes listed below for other components are also included.

  • udev see 431556

    • Remove devfs.rules and compat-full.rules
    • Add z10_input.rules to create input device nodes in /dev/input (required for g-i) Works with modified busybox on i386, text d-i.
  • Change /etc/inittab in rootskel to use tty2-tty4 for debug shells and syslog (committed in SVN; change works with current versions of busybox/udev).
    uploaded

  • Change userdevfs to also create non-devfs device nodes (for arches that do not have a working udev ?). Missed in original analysis, but fixed in time by Colin.
    uploaded

  • Graphical installer
    • Device files for input devices are created in /dev instead of /dev/input which makes starting directfb fail. Adding z10_input.rules in udev-udeb fixed this (see above).

Modified packages not in d-i tree:

  • udev uploaded

Post-switch cleanup

After we've switched to use "regular" device names, we should be able to clean up quite a lot of code. The list below is far from complete.

  • any references to /dev/discs/
  • rootskel: various references to /dev/vc/*, /dev/fb/* and possibly others

  • /dev/md should not be removed. See mdadm FAQ.

Impacted files:

  • arch/m68k/vmelilo-installer/debian/postinst

  • arch/s390/dasd/dasd.c

  • arch/s390/zipl-installer/debian/zipl-installer.postinst

  • debian-installer-utils/list-devices

  • hw-detect/ethdetect.sh

  • hw-detect/hw-detect.sh

  • libdebian-installer/include/debian-installer.h

  • libdebian-installer/src/system/devfs.c

  • mdcfg/mdcfg.sh

  • mdcfg/partconf-hook.sh

  • partconf/README

  • partitioner/main.c

  • partman/partman-auto-raid/README

  • partman/partman-auto/auto-shared.sh

  • partman/partman-auto/auto.d/initial_auto

  • partman/partman-base/definitions.sh

  • partman/partman-crypto/crypto_tools.sh

  • partman/partman-crypto/update.d/crypto_visuals

  • partman/partman-lvm/undo.d/lvm

  • sarge-support/termwrap

  • userdevfs/S10userdevfs

  • userdevfs/debian/rules

  • userdevfs/init-dev

  • userdevfs/update-dev

Done:

  • floppy-retriever/debian/load-floppy.postinst

  • autopartkit/autopartkit.c

  • kbd-chooser/getfd.c

  • mountfloppy/mountfloppy

  • os-prober/README

  • os-prober/os-prober

  • partconf/find-parts.c

  • partconf/fstab-common

  • rootskel/src-bootfloppy/init

  • rootskel/src/etc/fstab

  • rootskel/src/init

  • rootskel/src/lib/debian-installer/init-udev-devices

  • rootskel/src/lib/debian-installer/detect-console-linux

  • rootskel/src/lib/debian-installer-startup.d/S01mount

  • rootskel/src/lib/debian-installer.d/S35framebuffer-linux

  • arch/i386/lilo-installer/debian/lilo-installer.templates

  • arch/i386/lilo-installer/debian/postinst