Results 1 to 2 of 2

Thread: Please change /sbin/init to a symlink to...

  1. #1
    Junior Member
    Join Date
    Sep 2004
    Location
    US-NJ
    Posts
    2

    Please change /sbin/init to a symlink to...

    In addition to using the Knoppix CD, I have Knoppix loading via PXE, from a tftp server with various other bootable images. A PXE image selection menu list the various images that can be booted.

    In addition to using the Knoppix desk top, I am looking at using Knoppix as the core for various other special purpose boots e.g. a Kickstart or Yast like system installer, based on Knoppix and shell scripts instead (see cAosity.org for sample shell script installer.) The goal is to provide a single build server and PXE boot for installing multiple different distros.

    Changing /sbin/init to a symbolic link to /init would allow init to be placed in the miniroot initrd file. This would thereby allow different system startup configs to be selected from the PXE menu -- without any changes to the core CDROM image (because the pxelinux.cfg/default allows different miniroot initrd's to be specified.) As a default, the /init could simply link back to say /sbin/initKnoppix which might be the new name for the original /sbin/init.

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    Re: Please change /sbin/init to a symlink to...

    Quote Originally Posted by huhl
    Changing /sbin/init to a symbolic link to /init would allow init to be placed in the miniroot initrd file. This would thereby allow different system startup configs to be selected from the PXE menu -- without any changes to the core CDROM image (because the pxelinux.cfg/default allows different miniroot initrd's to be specified.) As a default, the /init could simply link back to say /sbin/initKnoppix which might be the new name for the original /sbin/init.
    You don't need that, just change linuxrc to create symlinks for /sbin/ too (like for etc/). Also as sbin is not big (16 MB here), you could just do a cp -a /sbin /ramdisk/

    mount --bind /ramdisk/sbin /sbin

    And then do whatever you want.

    ........

    but if I now remember correctly init is already set as init=/etc/init, so just changing that file should be enough.

    cu

    Fabian

Similar Threads

  1. Symlink for a printer driver
    By asearle in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 04-16-2005, 10:02 PM
  2. Replies: 0
    Last Post: 09-17-2004, 04:17 AM
  3. Create a symlink from /dev/dvd to /dev/sr2
    By rrfish72 in forum General Support
    Replies: 50
    Last Post: 09-12-2004, 04:05 PM
  4. Replies: 1
    Last Post: 08-11-2004, 11:36 AM
  5. Replies: 12
    Last Post: 08-18-2003, 06:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Western Digital WD Red 4TB NAS Hard Drive WD40EFRX SATA 64MB 3.5

Western Digital WD Red 4TB NAS Hard Drive WD40EFRX SATA 64MB 3.5" HDD

$145.00



Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A

$64.00



Western Digital Blue (7200RPM, 3.5

Western Digital Blue (7200RPM, 3.5", SATA III, 64MB Cache) 1TB HDD

$19.90



DELL 2TB Enterprise HDD (7200RPM, 3.5

DELL 2TB Enterprise HDD (7200RPM, 3.5", SATA III, 128MB Cache) HUS722T2TALA600

$49.95



Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE picture

Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE

$68.99



HGST HUS724040ALA640 4TB 7200 RPM SATA 3.5

HGST HUS724040ALA640 4TB 7200 RPM SATA 3.5" Internal Desktop Drive 100% Health

$78.00



Seagate ST6000NM0115 6TB 256MB 7200RPM 3.5

Seagate ST6000NM0115 6TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive

$159.99



HGST HUA723030ALA640 3TB SATA 7200 RPM 3.5 in Enterprise HDD | 0F14044 (100%) picture

HGST HUA723030ALA640 3TB SATA 7200 RPM 3.5 in Enterprise HDD | 0F14044 (100%)

$45.00



Western Digital 1TB 3.5

Western Digital 1TB 3.5" SATA III 7200RPM Desktop Hard Drive

$34.99



Western Digital 2TB WD2003FYYS-02W0B0 3.5

Western Digital 2TB WD2003FYYS-02W0B0 3.5" SATA 7200RPM Hard Drive

$43.00