Skip to content

Commit

Permalink
init: Start /usr/bin/sh shell
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalmiel committed Nov 10, 2023
1 parent 5d2a7c6 commit ed2349a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sysroot/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ function _cykusz_bash {

make -C $BASH_CYKUSZ_BUILD_DIR DESTDIR=$SYSROOT
make -C $BASH_CYKUSZ_BUILD_DIR DESTDIR=$SYSROOT install

ln -sf /usr/bin/bash $SYSROOT/usr/bin/sh
}

function _cykusz_llvm {
Expand Down
2 changes: 1 addition & 1 deletion userspace/src/bin/init/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fn spawn_shell() -> usize {
.expect("Failed to attach tty");

if let Err(e) = syscall::exec(
"/usr/bin/bash",
"/usr/bin/sh",
None,
Some(&["PATH=/bin:/usr/bin", "TERM=cykusz"]),
) {
Expand Down

0 comments on commit ed2349a

Please sign in to comment.