initramfs: create symlinks for /bin and /sbin

Point /bin and /sbin to rootfs directories in the 22.04 rootfs fs.
/bin/bash not found in the initramfs causing the debug console and
various scripts to fail.

Fixes: #10959

Signed-off-by: Ryan Savino <ryan.savino@amd.com>
Signed-off-by: Fabiano Fidêncio <fidencio@northflank.com>
This commit is contained in:
Ryan Savino 2025-04-10 18:13:57 -05:00
parent b97bc03ecb
commit c888fadfac

View File

@ -12,6 +12,8 @@ dir /mnt 0755 0 0
file /init /usr/sbin/init.sh 0755 0 0
file /sbin/busybox /usr/bin/busybox 0755 0 0
file /sbin/veritysetup /usr/sbin/veritysetup.static 0755 0 0
slink /usr/bin /bin 755 0 0
slink /usr/sbin /sbin 755 0 0
slink /bin/sh /sbin/busybox 0755 0 0
slink /sbin/mount /sbin/busybox 0755 0 0
slink /bin/mkdir /sbin/busybox 0755 0 0