diff --git a/scripts/chapter7/7.2-change-ownership.sh b/scripts/chapter7/7.2-change-ownership.sh new file mode 100644 index 0000000..95eb263 --- /dev/null +++ b/scripts/chapter7/7.2-change-ownership.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} +case $(uname -m) in + x86_64) chown -R root:root $LFS/lib64 ;; +esac diff --git a/scripts/main.sh b/scripts/main.sh index 2edd80d..add3840 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -395,3 +395,9 @@ then stop_script "chapter6/6.18-gcc.sh" fi +# Chapter 7.2 +# =========== +echo "Chapter 7" +echo "Changing ownership to root" +su -c "bash $PWD/chapter7/7.2-changing-ownership.sh" +