Howto mkosi: Difference between revisions
Jump to navigation
Jump to search
Mandulete1 (talk | contribs) No edit summary |
Mandulete1 (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
pacman -S debootstrap debian-archive-keyring apt --noconfirm | pacman -S debootstrap debian-archive-keyring apt --noconfirm | ||
create image: | create image: | ||
mkosi --distribution debian --release bookworm --format disk --bootable --checksum --root-password password --package linux-image-generic,systemd,systemd-boot,systemd-sysv,udev,dbus --package openssh-client,vim --output debian. | mkosi --distribution debian --release bookworm --format disk --bootable --checksum --root-password password --package linux-image-generic,systemd,systemd-boot,systemd-sysv,udev,dbus --package openssh-client,vim --output debian.img | ||
boot image using systemd: | |||
systemd-nspawn --boot --image debian.img | |||
= create arch img = | = create arch img = | ||
install packages: | install packages: | ||
Line 12: | Line 14: | ||
create image: | create image: | ||
mkosi --distribution arch --format disk --bootable --checksum --root-password password --package linux,systemd,udev,dbus --package openssh-client,vim --output arch.img | mkosi --distribution arch --format disk --bootable --checksum --root-password password --package linux,systemd,udev,dbus --package openssh-client,vim --output arch.img | ||
boot image using systemd: | |||
systemd-nspawn --boot --image arch.img | |||
= create ubuntu img = | = create ubuntu img = | ||
install packages: | install packages: | ||
Line 17: | Line 21: | ||
create image: | create image: | ||
mkosi --distribution ubuntu --release noble --format disk --bootable --checksum --root-password password --package linux-image-generic,systemd,systemd-boot,systemd-sysv,udev,dbus --package openssh-client,vim --output ubuntu.img | mkosi --distribution ubuntu --release noble --format disk --bootable --checksum --root-password password --package linux-image-generic,systemd,systemd-boot,systemd-sysv,udev,dbus --package openssh-client,vim --output ubuntu.img | ||
boot image using systemd: | |||
systemd-nspawn --boot --image ubuntu.img |
Revision as of 02:22, 15 May 2024
installation
install package on archlinux:
pacman -S mkosi mtools systemd-ukify --noconfirm
create debian img
install packages:
pacman -S debootstrap debian-archive-keyring apt --noconfirm
create image:
mkosi --distribution debian --release bookworm --format disk --bootable --checksum --root-password password --package linux-image-generic,systemd,systemd-boot,systemd-sysv,udev,dbus --package openssh-client,vim --output debian.img
boot image using systemd:
systemd-nspawn --boot --image debian.img
create arch img
install packages:
pacman -S arch-install-scripts --noconfirm
create image:
mkosi --distribution arch --format disk --bootable --checksum --root-password password --package linux,systemd,udev,dbus --package openssh-client,vim --output arch.img
boot image using systemd:
systemd-nspawn --boot --image arch.img
create ubuntu img
install packages:
pacman -S debootstrap ubuntu-keyring apt --noconfirm
create image:
mkosi --distribution ubuntu --release noble --format disk --bootable --checksum --root-password password --package linux-image-generic,systemd,systemd-boot,systemd-sysv,udev,dbus --package openssh-client,vim --output ubuntu.img
boot image using systemd:
systemd-nspawn --boot --image ubuntu.img