00:00hello I have a problem in my Arch Linux machine which I use all the time to
00:07record and the problem requires chrouting in order to resolve it it's
00:14about the bootloader which was updated to a version that has some problems
00:19probably some bugs I have a permanent portable installation of Alpine Linux
00:26and I thought of chrouting using it if you wonder which is the easiest way to
00:31chrouting and you can do it of course I recommend you strongly to use Arch Linux
00:37live media or Gentoo's live media which both have a command which is arch
00:47root this one arch root to the directory where you mounted your root file system
00:54or you can run these commands on any on almost any Linux distribution when it
01:01comes to Alpine Linux it's a little different the thing that I can say
01:06about this wiki which I may need to put in the description of this video is that
01:12this is about a variable which we should declare and I don't know where it is
01:16declared in this wiki I don't think I see it anywhere here so whenever there is
01:22this truth we need to ignore it and decide the directory our selves here is my Alpine
01:32Linux we should first know what is the the root partition in my case it's slash dev slash
01:44sda2 I have a separate boot partition so it needs an extra command we start by mounting
01:55do as using do as instead of sudo we start by mounting our root file system which is under slash dev slash sda2
02:09I'm a go with almost the simplest directory and the most used one for mount and stuff which is slash mnt
02:17the password here
02:19okay the next command is for mounting our boot partition which should go under slash mnt slash boot
02:29yeah it fails here we can mount it later after which route
02:36if you have other partitions like var or usr if they are in separate partitions you need to mount them
02:51as almost as described here in my case let's say I have slash usr and slash dev slash sda5 it becomes like this
03:07such thing doesn't exist anyway so it will spit out an error for me but for you if you have it let's say
03:15sda2 sda2 sda3 whatever sda it is or whatever letters you have here it should work for you
03:23if it is usr if it is var you change it etc
03:28and then these modules the kernel modules may need to be loaded I believe that this is about
03:41correct me if I'm wrong I'm not sure though I believe that this is about the LVM logical volumes
03:54let me copy it first
03:58copy and run it as root when it is in alpine it should be with do as paste it here
04:05we can check if it is loaded that module by running this command ls mod and like this yeah here it is
04:18if I'm not mistaken the next command is for dmcrypt I don't think I need it for me for you if you need it
04:27you should run it you should run this command and then we check again and here it is this is the one for mounting
04:43slash dev my boot partition I guess I need to specify extended I don't remember what it is exactly but
04:51it may be extended it may be extended for this one and we should specify probably the file system
05:04in my case it's as I guess extended for
05:10yeah there is something wrong there I don't know what it is
05:14we have nothing to worry about since such thing can be done later after which route
05:19we may need to configure our dns configurations in my case I don't think I need it for now in case
05:35I needed it later we may need to do it the next thing we need to do is to copy this script which is
05:44responsible on the process of routing we copy it and then
05:57you use your favorite text editor or whichever text editor you want
06:02the script you can call it whatever you want I'm gonna go with the default option given here which
06:10is start route but before that let me clear out the screen and then start route like this and paste
06:21everything here confirm here if you had a similar confirmation message save if it is nano ctrl x y here and
06:35then enter to confirm the name uh chmod plus chmod plus x and then start tab should give the rest of the
06:48comment the rest of the name or the comment also that's not wrong and then do as mv start this one can
07:00simply be run even in the the directory where it is made so let's run it uh what is the true directory
07:14yeah yeah we should you see here this variable is not declared so you should specify what is your directory
07:23in my case it's mnt no i don't think i'm gonna overwrite it
07:34since my arch has correct dns configurations let's ping especially any website like google or something
07:49and you can see and you can see that it's working that's why i didn't want to overwrite my
07:54uh resolve.conf let's see if we can run pacman
08:02yes it works i don't need to continue till the end with it
08:05i believe that my chrouting process is done successfully i'm signing out please don't forget
08:10to subscribe like share and comment and peace