Skip to content

Instantly share code, notes, and snippets.

@sulincix
Last active June 17, 2025 08:12
Show Gist options
  • Save sulincix/8eeb668511e2a7f67a89b7709ab9018d to your computer and use it in GitHub Desktop.
Save sulincix/8eeb668511e2a7f67a89b7709ab9018d to your computer and use it in GitHub Desktop.
debian-live

live build ile iso yapmak

Gerekli paketlerin kurulması

Gerekli paketleri yüklemek için:

apt install live-build xorriso mtools

profil oluşturma

Öncelikle profil oluşturmamız gereklidir.

lb config

profil içeriği şu şekilde olmalıdır.

├── auto
├── config
│   ├── apt
│   ├── archives
│   ├── binary
│   ├── bootloaders
│   ├── bootstrap
│   ├── chroot
│   ├── common
│   ├── debian-installer
│   ├── hooks
│   │   ├── live
│   │   └── normal
│   ├── includes
│   ├── includes.binary
│   ├── includes.bootstrap
│   ├── includes.chroot_after_packages
│   ├── includes.chroot_before_packages
│   ├── includes.installer
│   ├── includes.source
│   ├── package-lists
│   │   └── live.list.chroot
│   ├── packages
│   ├── packages.binary
│   ├── packages.chroot
│   ├── preseed
│   ├── rootfs
│   └── source
└── local
    └── bin

Ardından config/binary config/chroot config/common dosyalarını düzenleyin.

Sonra iso haline getirmek için:

lb build

profil özelleştirme

profili aşağıdaki komutla oluşturun.

DIST=stable
MIRROR="https://deb.debian.org/debian"
MIRROR_SECURITY="https://deb.debian.org/debian-security"
# tüm parametrelere lb config --help yaparak ulaşabilirsiniz.
lb config noauto\
    --distribution "$DIST" \
    --debian-installer-distribution "$DIST" \
    --debian-installer false \
    --archive-areas "main contrib non-free non-free-firmware" \
    --updates false \
    --backports false \
    --source false \
    --win32-loader false \
    --loadlin false \
    --firmware-binary false \
    --firmware-chroot true \
    --mirror-bootstrap "$MIRROR" \
    --mirror-binary "$MIRROR" \
    --mirror-chroot-security "${MIRROR_SECURITY}" \
    --mirror-binary-security "${MIRROR_SECURITY}" \
    --iso-application "Sagopa Kajmer" \
    --iso-publisher "Kaf Kef" \
    --iso-volume "Kasvaa"
  • İso içeriğine eklemek istediğiniz paketleri package-lists/paketler.chroot adında bir dosya oluşturup içine yazın.
  • includes.çhroot içine eklediğiniz dosyalar oluşturulacak sisteme kopyalanacaktır.
  • hooks/binary içerisine ekleyeceğiniz betikler iso oluşturulacağı sırada çalıştırılır.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment