В dracut добавлена чрезвычайно интересная фича - теперь можно подтягивать live-image через протокол BitTorrent!
Боже, это просто очешуенно!!! Наши админы на ночной смене уже на радостях выпили по стопарику и занюхивают носками, в то время, как тренированнные мартышки уже подтягивают последние коммиты dracut, и генерируют bittorrent-файлы, а Главный Начальник Упоротых Айтишников пообещал каждому участвующему в этом прекрасном безобразии по Звезде РэдХата III степени.
Конечно же, это может юзаться не только с PXE.
Adds bittorrent support for live images
This patch adds bittorrent support to 45url-lib for those that might want to retrieve the same live image for multiple systems at once without saturating the network. This patch requires ctorrent to be installed into initramfs. Torrent kernel command line format:
root=live:torrent://example.com/liveboot.img.torrent
Start a tracker:
bttrack --bind <tracker_ip> --port 6969 --dfile dstate --reannounce_interval 60
Create the torrent:
ctorrent -t live_image -u http://<tracker_ip>:6969/announce -s live_image.torrent
Seed the initial torrent:
ctorrent live_image.torrent
Boot the live image.Пруф: https://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=338bad63937eb48...