How to remove systemd from the Netinst CD

From Without Systemd
Revision as of 09:50, 28 March 2015 by Trek00 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Important: This HowTo is not 100% tested.

A finished image: http://without-systemd.org/wiki/images/debian-testing-amd64-netinst.iso

Loopback mount the iso somewhere, and copy all files to a directory named cdrom.


remove the systemd package from

./pool/main/s/systemd

but don't remove the folowing files

./pool/main/s/systemd/libsystemd0_215-5+b1_amd64.deb
./pool/main/s/systemd/udev_215-5+b1_amd64.deb
./pool/main/s/systemd/libudev1-udeb_215-5+b1_amd64.udeb
./pool/main/s/systemd/libudev1_215-5+b1_amd64.deb

Add the following files from a debian mirror to the pool directory

./pool/main/s/sysvinit/sysvinit-core_2.88dsf-53.4_amd64.deb
./pool/main/s/sysvinit/initscripts_2.88dsf-53.4_amd64.deb
./pool/main/s/sysvinit/sysvinit-utils_2.88dsf-53.4_amd64.deb
./pool/main/s/sysvinit/sysv-rc_2.88dsf-53.4_all.deb
./pool/main/s/sysvinit/sysvinit_2.88dsf-53.4_amd64.deb

And then rebuild the repository and iso file, i've used the folowing script and config files:


update-cdrom.sh

#!/bin/sh
apt-ftparchive generate config-udeb
apt-ftparchive generate config-deb 
apt-ftparchive -c config-rel release cdrom/dists/jessie > cdrom/dists/jessie/Release
cd cdrom
genisoimage -o /div/test.iso -r -RJ -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat ./
cd ..
  • Note: to make an UEFI bootable image you should do also: isohybrid --uefi test.iso [1]

config-deb

Dir {
  ArchiveDir "cdrom";
  OverrideDir "indices";
  CacheDir "indices";
};
TreeDefault {
  Directory "pool/";
};
BinDirectory "pool/main" {
    Packages "dists/jessie/main/binary-amd64/Packages";
#   BinOverride "override";
#   ExtraOverride "override.extra";
};
Default {
   Packages {
      Extensions ".deb";
  };
};

config-rel

APT::FTPArchive::Release::Codename "jessie";
APT::FTPArchive::Release::Origin "Debian";
APT::FTPArchive::Release::Components "main";
APT::FTPArchive::Release::Label "Debian";
APT::FTPArchive::Release::Architectures "amd64";
APT::FTPArchive::Release::Suite "testing";

config-udeb

Dir {
  ArchiveDir "cdrom";
  OverrideDir "indices";
  CacheDir "indices";
};
TreeDefault {
  Directory "pool/";
};
BinDirectory "pool/main" {
  Packages "dists/jessie/main/debian-installer/binary-amd64/Packages";
};
Default {
  Packages {
      Extensions ".udeb";
  };
};
Personal tools