You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to pass net parameters to use (dropbear) sshd from initramfs
to feed destination rootfs on boot, via partition label
1. manual install
windows is not needed
dnf will be used: boot Fedora x86_64 in pc/virtualbox/ps4, anywhere it's fine
plug your usb and take note about assigned sdX naming
lsblk -f
(from now on, entire target disc will be sdb)
1.0 optional, partition disc
whole usb used here, by splitting into just two partitions
parted -a optimal /dev/sdb
(parted) mklabel msdos
(parted) p free
Model: SanDisk Cruzer Edge (scsi)
Disk /dev/sdb: 8003MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1024B 8003MB 8003MB Free Space
(parted) mkpart pri
File system type? [ext2]?
Start? 0%
End? 512M
(parted) mkpart pri
File system type? [ext2]?
Start? 512M
End? 100%
(parted) q
Information: You may need to update /etc/fstab.
1.1 apply filesystems (vfat and ext4)
[root@os4 ~]# mkfs.vfat -f 2 -n ps4boot /dev/sdb1
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
[root@os4 ~]# mkfs.ext4 -L ps4linux /dev/sdb2
mke2fs 1.44.3 (10-July-2018)
Creating filesystem with 1828864 4k blocks and 457856 inodes
Filesystem UUID: 31239142-214f-45dd-b070-7c9d1d1f4f45
...
Writing superblocks and filesystem accounting information: done
[root@os4 ~]# dnf --releasever=29 --installroot=/mnt/usb groupinstall core
...
Total download size: 253 M
Installed size: 1.0 G
Is this ok [y/N]: y
...
Complete!
adjust cmdline by appending: root=LABEL=ps4linux
will automount newroot by label; sshd sshd_wait=10 sshd_port=2020 binit_net_if=eth0 binit_net_addr=10.0.0.24/24 binit_net_gw=10.0.0.2
will setup remote ssh via autorized_keys to debug headless;
4. boot ps4linux
bzImage + initramfs.cpio.gz will be readed from first vfat partition
custom cmdline will let change rootfs via LABEL, targeting different partitions
5. customizations
5.1 remote access
to remotely access via ssh, you need to place your client public key into authorized_keys file on root of initramfs
extract initramfs
mkdir test && cd test
zcat initramfs.cpio.gz | cpio -idmv