1
00:00:00,005 --> 00:00:02,007
- [Instructor] Let's look at interrupting GRUB

2
00:00:02,007 --> 00:00:06,006
and setting a kernel command line parameter.

3
00:00:06,006 --> 00:00:10,007
So I have a VM here in Microsoft Azure,

4
00:00:10,007 --> 00:00:12,002
and if you're using that, you can find

5
00:00:12,002 --> 00:00:15,000
the zero console here underneath help.

6
00:00:15,000 --> 00:00:20,003
So I'm going to do a reset VM hard.

7
00:00:20,003 --> 00:00:24,007
Hit the reset, and then hit escape button immediately.

8
00:00:24,007 --> 00:00:26,006
I hit it a couple of times.

9
00:00:26,006 --> 00:00:27,004
I got this.

10
00:00:27,004 --> 00:00:31,005
I'm going to exit out of that to get here.

11
00:00:31,005 --> 00:00:33,006
And then if you read the little paragraph on the bottom,

12
00:00:33,006 --> 00:00:37,003
you can do an E to edit, so I'm going to do E,

13
00:00:37,003 --> 00:00:39,004
and I'm going to do my down arrow

14
00:00:39,004 --> 00:00:42,006
and look for the Linux line

15
00:00:42,006 --> 00:00:49,002
with a kernel and the command line arguments.

16
00:00:49,002 --> 00:00:51,001
And there we have one.

17
00:00:51,001 --> 00:00:54,005
I go down one line, then I go back.

18
00:00:54,005 --> 00:00:56,008
Easy way to get at the end of the line.

19
00:00:56,008 --> 00:00:58,001
I'm going to add a command on an argument.

20
00:00:58,001 --> 00:00:59,001
I'm just going to make one up.

21
00:00:59,001 --> 00:01:03,008
I'm going to call it new_cmd_arg.

22
00:01:03,008 --> 00:01:06,005
There is none with that name.

23
00:01:06,005 --> 00:01:08,003
And then if you read the little paragraph below,

24
00:01:08,003 --> 00:01:11,003
I could do a control X or an F 10 boot.

25
00:01:11,003 --> 00:01:13,006
I'm going to do a control X

26
00:01:13,006 --> 00:01:17,006
and now it should boot with no problems.

27
00:01:17,006 --> 00:01:25,005
And now I get a login prompt.

28
00:01:25,005 --> 00:01:30,002
And I'm going to do a D message with sudo

29
00:01:30,002 --> 00:01:37,004
and see if it's got my new command arg in there.

30
00:01:37,004 --> 00:01:39,009
There we go.

31
00:01:39,009 --> 00:01:43,003
Notice it tells us it'll be past a user space.

32
00:01:43,003 --> 00:01:44,006
That's fine.

33
00:01:44,006 --> 00:01:50,006
And then let's cat proc command line.

34
00:01:50,006 --> 00:01:52,005
There it is at the end.

35
00:01:52,005 --> 00:01:54,000
Looks like it worked.

