Skip to content

Commit

Permalink
Use official Debian chroot from coreutils package.
Browse files Browse the repository at this point in the history
  • Loading branch information
MintPup committed Jun 22, 2016
1 parent 9c2b12d commit 7beca5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions porteus-boot/linuxrc
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ cp -f /union/lib/systemd/systemd /bin
if [ $? -eq 0 ]; then
echo """using systemd..."""
pivot_root /union /union/mnt/live
exec bin/chroot . /mnt/live/bin/systemd "$@" <dev/console >dev/console 2>&1
exec usr/sbin/chroot . /mnt/live/bin/systemd "$@" <dev/console >dev/console 2>&1 #Use official Debian chroot binary
else
echo -e """!!ERROR!!\nSomething went wrong and I cannot continue.\nPress Ctrl+Alt+Del to reboot."""
sh
Expand All @@ -465,7 +465,7 @@ echo """using systemd..."""
cp -f /union/sbin/init /bin
if [ $? -eq 0 ]; then
pivot_root /union /union/mnt/live
exec bin/chroot . /mnt/live/bin/init "$@" <dev/console >dev/console 2>&1
exec usr/sbin/chroot . /mnt/live/bin/init "$@" <dev/console >dev/console 2>&1 #Use official Debian chroot binary.
else
echo -e """!!ERROR!!\nSomething went wrong and I cannot continue.\nPress Ctrl+Alt+Del to reboot."""
sh
Expand All @@ -479,7 +479,7 @@ cp -f /union/lib/systemd/systemd /bin
if [ $? -eq 0 ]; then
echo """using systemd..."""
pivot_root /union /union/mnt/live
exec bin/chroot . /mnt/live/bin/systemd "$@" <dev/console >dev/console 2>&1
exec usr/sbin/chroot . /mnt/live/bin/systemd "$@" <dev/console >dev/console 2>&1 #Use official Debian chroot binary.
else
echo -e """!!ERROR!!\nSomething went wrong and I cannot continue.\nPress Ctrl+Alt+Del to reboot."""
sh
Expand All @@ -488,7 +488,7 @@ echo """using systemd..."""
cp -f /union/sbin/init /bin
if [ $? -eq 0 ]; then
pivot_root /union /union/mnt/live
exec bin/chroot . /mnt/live/bin/init "$@" <dev/console >dev/console 2>&1
exec usr/sbin/chroot . /mnt/live/bin/init "$@" <dev/console >dev/console 2>&1 #Use official Debian chroot binary.
else
echo -e """!!ERROR!!\nSomething went wrong and I cannot continue.\nPress Ctrl+Alt+Del to reboot."""
sh
Expand Down

0 comments on commit 7beca5e

Please sign in to comment.